toggle checkboxes javascript using prototype

Toggle All Check Boxes using prototype javascript library.


function toggleCheckBoxes(formName) {
// toggle Check Boxes using Prototype Library
var form=$(formName);
var i=form.getElements('checkbox');
i.each(function(item) {
if (item.checked)
item.checked=false
else {item.checked=true }
}

);
}

No Comments yet

TrackBack URI

Sorry, the comment form is closed at this time.

Powered by WordPress RSS XMLRSS Feed - Syndicate this Site and comments feed
linux GNUpowered by Apache tomcatMySQL ABPHP - The Language the Web Runs on

^Top^ Gare CalhounGare CalhounGare CalhounGare CalhounGare Calhoun