Welcome to Cool Solutions
IDM 3.5 UserApp - Substitute "True/False" for radio control buttons
Submitted By RSynoradzki on Wed. 04.23.2008
license:
free, what elseDefine your form field as RadioControlButtons and call the function within the onload-event.
The call:
substTrueFalse(field,true,'disagree','agree')
The function:
function substTrueFalse(field,defValue,falseRepl,trueRepl) {
var myId = '_'+field.getName();
var myElem = document.getElementsByName(myId);
myElem[0].nextSibling.nodeValue=falseRepl;
myElem[1].nextSibling.nodeValue=trueRepl;
field.select(defValue);
}
- To leave a comment you need to Login or Register
- 432 reads
Print
Email
RSS
Digg
Slashdot
Recent comments
3 days 9 hours ago
3 days 13 hours ago
46 weeks 4 days ago
46 weeks 4 days ago
46 weeks 6 days ago
47 weeks 8 hours ago
47 weeks 3 days ago
1 year 41 weeks ago
1 year 41 weeks ago
1 year 42 weeks ago