If you are into using jQuery and need to manage select lists, here are some really useful tips.
http://www.myphpetc.com/2009/03/jquery-select-elements-tips-and-tricks.html
By the way, I wrote my own routine for using an array to save a select list and its selected index when the page loads:
//Save all initial options
var saveselect = new Array();
$('#myselect option').each(function() {
saveselect[this.value] = this.text;
});
//Save inital selected index
var saveindex = $("#myselect option").index($("#myselect option:selected"));
Wednesday, November 25, 2009
Subscribe to:
Post Comments (Atom)
I have started this blog to keep track of all the interesting stuff I read about. In some cases, friends of mine have shared their cool stuff with me. I try to keep the headlines and descriptions short, so you must follow the links to read and decide for yourself if a topic is worth your time. Want to contribute? Just comment on any of the stories and I will be notified instantly.
No comments:
Post a Comment