![]() | |
![]() |
| | Thread Tools | Display Modes |
#21
| |||
| |||
|
|
select id="qType"+i name="qType"+i *onchange="doCheckbox('+i +','+nextrow+')"><option value="YN" selected>Yes/No<option value="CK">Checkbox<option value="RD">Radio</select // silly me, the form wasn't sent, how to expect an element of it? // now, I only need this SELECT element for the doCheckbox function, could I re-write the above code to select id="qType"+i name="qType"+i onchange="doCheckbox(this.value,'+i+','+nextrow+') "><option value="YN" selected>Yes/No<option value="CK">Checkbox<option value="RD">Radio</ select to pass the SELECT element's value along? |
#22
| ||||||
| ||||||
|
|
Thanks. But I ran into a problem. var qt = 'qType'+i; alert(qt); // so far so good, it generates a valid value of the SELECT element's id; |
|
var selectelement = document.getElementById(qt); alert(selectelement); // not good, it generates null value, hence, next step also failed. Could the "pointed ear something" mess up my browser (his/her javascript expertise is at a level to do something like that)? |
|
[...] your explanation seems to indicate that there _isn't_ an element with the ID you expect. Ahe. I know where the problem is... maybe... Here's the code for this portion, select id="qType"+i name="qType"+i onchange="doCheckbox('+i |
|
+','+nextrow+')"><option value="YN" selected>Yes/No<option value="CK">Checkbox<option value="RD">Radio</select // silly me, the form wasn't sent, how to expect an element of it? // now, I only need this SELECT element for the doCheckbox function, could I re-write the above code to <select id="qType"+i name="qType"+i onchange="doCheckbox(this.value,'+i+','+nextrow+') "><option value="YN" selected>Yes/No<option value="CK">Checkbox<option value="RD">Radio</ select> to pass the SELECT element's value along? My test indicates no. Then how? |
|
Unfortunately the other viable alternative of using Firefox with Firebug isn't available at this point. A company called Aka??? embeded encrypted code (probably to track what's going on with my FF usage), |
|
but that's none of their f??? business and I cursed them publicly, and they are security experts, now, my FF is hardly working, let alone the powerful Firebug debugging feature). Trying the lame re- installation to no avail... |
#23
| |||
| |||
|
|
Unfortunately the other viable alternative of using Firefox with Firebug isn't available at this point. A company called Aka??? embeded encrypted code (probably to track what's going on with my FF usage), |
|
but that's none of their f??? business and I cursed them publicly, and they are security experts, now, my FF is hardly working, let alone the powerful Firebug debugging feature). *Trying the lame re- installationto no avail... Maybe you should someone let do the job who knows what they are doing. PointedEars -- |
![]() |
| Thread Tools | |
| Display Modes | |
| |