html side:
<input type="radio" class="trans" value="YES" id="PS_FORM/SUBJECT_PROPERTY/Sold[@Field_Type='checkbox']" name="PS_FORM/SUBJECT_PROPERTY/Sold">
Yes
<input type="radio" class="trans" value="NO" id="PS_FORM/SUBJECT_PROPERTY/Sold[@Field_Type='checkbox']" name="PS_FORM/SUBJECT_PROPERTY/Sold">No
javascript side
function subj_sold() {
var ctr = 0;
var radioLength = PS_FORM/SUBJECT_PROPERTY/Sold.length;
for (var i = 0; i < radioLength; i++) {
if (PS_FORM/SUBJECT_PROPERTY/Sold[i].checked) {
alert(PS_FORM/SUBJECT_PROPERTY/Sold[i].value);
break;
}
ctr++;
}
}
What I want to do is get the value of either yes or no and make some other inputs either enabled or disabled. My problem is 2 fold.
1. depending on what I place in the
Quote
var =
2. my script breaks on the function and wont even hit an alert if it is the 1st item in the function.
thanks

New Topic/Question
Reply



MultiQuote



|