search for: arrayspan

Displaying 1 result from an estimated 1 matches for "arrayspan".

Did you mean: arrayspans
2006 Aug 17
2
link_to_remote option :onsuccess, execute js function
...ressed'' 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 via http://www.ruby-...