hi,
function verifyEmail() {
var pageUrl = '<%=ResolveUrl("~/UserInterface/StaffPortal/StaffRegister.aspx")%>'
var verifyEmail = '{verifyEmail:"' + $('#<%=Text_email.ClientID%>').val() + '"}';
}
Above function is a little part of whole actual function where I'm using json to store data of textbox in variable and pass as a parameter in query.
as seen in above funtion I'm using
<%=Text_email.ClientID%>'
How can i pass this as parameter and use the same function for more than one textboxes?
function verifyEmail(idd) {
var pageUrl = '<%=ResolveUrl("~/UserInterface/StaffPortal/StaffRegister.aspx")%>'
var verifyEmail = '{verifyEmail:"' + $('#'+idd+'').val() + '"}';
}
I've tried above code. I've called function using verifyEmail('<%=Text_email.ClientID%>'); but it is not working.
when i alert idd then it prompts <%=Text_email.ClientID%> but when i pass variable idd in $('#+idd+') it doesnt work?
Please help.
Thank you :)