Displaying 1 result from an estimated 1 matches for "idregex".
Did you mean:
eregex
2006 Aug 17
2
link_to_remote option :onsuccess, execute js function
...ss ''depressed'' and other links to class
''raised''
the search is correct, but links classes don''t toggle, as my :success
option seems to be incorrect....
my js function toggle a button to simulate radio type buttons
function toggleButton(elementObj, idRegex) {
var arraySpans = document.body.getElementsByTagName("SPAN");
for(var i = 0; i < arraySpans.length; i++) {
if(arraySpans[i].id.match(idRegex)) {
arraySpans[i].className = ''raised'';
}
}
elementObj.className = ''depressed'';
}
--
Posted vi...