Dynamically enable/disable checkboxes in a form.

For a project I’m working on I need a way to disable/enable checkboxes in a form based on which option the user selects from a dropdown list. The easy way would have been to split it up in two forms, the user selects the option from the dropdown list, submits the form and the page reloads and shows the appropriate checkboxes but that’s not what I wanted, it should be dynamic. I knew I had to look at javascript to get this done.

For this example I’ll do everything inline and not use separate files.

Read the rest of this entry »

Amazon is going Green

Amazon Go Green
Amazon is one of the latest companies to jump on the green bandwagon.

They created a cross-category program that includes a list of products that customers have selected as the best green products offered by Amazon.com. It’s a place for customers to discover Amazon’s entire green product selection.

I do believe it’s important to help reduce the pollution so head over to Amazon and buy yourself some compact fluorescent light bulbs, stop using the plastic grocery bags and use reusable grocery tote bags which beside being eco-friendly or also a lot stronger. These are just two small suggestions, go see what else they have to offer, you’ll be surprised what you can do to help out.