javascript - ASP.Net Programming Validation ,Combo box inside repeater -
i have asp website in have repeater, has combo box , textbox.i need have text box value converted uppercase when select particular value combo box, not values combo box .i have tried onchange event , onkeypress event in javascript,but not able breakthrough.
function changecase(comboboxclientid,textboxclientid) { var combo=$find(comboboxclientid); if(combo.get_value()=='textvalue') { var textbox=$find(textboxclientid).value; code here........ `}`
you need this.
function changecase(comboboxclientid, textboxclientid) { if ($("#" + comboboxclientid).val() == 'textvalue') { var txtval = $("#" + textboxclientid).val(); $("#" + textboxclientid).val(txtval.touppercase()); } }
assumption : comboboxclientid, textboxclientid
actual id
of elements existing in page.
javascript asp.net
No comments:
Post a Comment