|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can't get the variable
I have many buttons that mapping many textbox, when I click button, I want to show a string that contains button number( and the mapping string ), but it failed. Here is the code: ///////////////////////////////////////////////////////////////////// <%response.write"<input type='button' name='bt_resone"& a &"' value='Save' onclick='resone("&a&")'>"%> function resone(cnt) { alert("document.all.txt_note"+cnt) } //////////////////////////////////////////////// It seems that the component I called is not there... Could you please advice? Thank you so much! Best regards, Boki. Boki wrote:
Show quote > Hi All, ..... it should be ... can javascript convert int to string directly? (> > I have many buttons that mapping many textbox, when I click button, I > want to show a string that contains button number( and the mapping > string ), but it failed. > > Here is the code: > ///////////////////////////////////////////////////////////////////// > <%response.write"<input type='button' name='bt_resone"& a &"' > value='Save' onclick='resone("&a&")'>"%> > > > function resone(cnt) > { > alert("document.all.txt_note"+cnt) > } > > //////////////////////////////////////////////// > > It seems that the component I called is not there... > Could you please advice? Thank you so much! > no enviroment to test now...) alert(document.all.txt_note+cnt) Show quote > Best regards, > Boki. |
|||||||||||||||||||||||