I’ve updated the cvLinkSelect class. Some minor tweaks are added so you can control even more with the class. I hope you like it!
Changes
- Maintain an empty element with a short discription and an empty value in your html page and the class will not remove this one while you change the parent select box
- Set the value of the first select box to the empty option after page reload
- Comments added for developers and curious people
- Updated the example
- Removed some overhead in the class
Go the the original page of the cvLinkSelect class!
Yesterday I’ve published the first version of the cvLinkSelect class for Mootools 1.2. Today I’ve released the new version of this nifty little class. I’ve completed the class with several finishing touches!
View example Download file
Changes
- Multiple GET variables in the request url.
- After a page refresh the script checks if the first linked selectbox option is not empty. If it isn’t empty the first request fires.
- If the request is empty it’s the last item in the linked selectboxes range. In this case we have to fire the isLast function.
Read more about the usage on the original post for the cvLinkSelect class!
Enjoy!
If you’re making a form with today’s standards you often have to make several select elements with the options of the next select elements referring to the previous one. It’s a simple task to create a small Mootool which do it for you but it’s always a time consuming process, especially if you’ll have a lot of select boxes. I thought that if I have use this functionality more than once a class would be helpful.
This class links the select boxes to each other. When you change the first select element the options for the following select boxes are loaded. Simple as that.
View example Download file Download Zip
Continue Reading »