Answer:
There are following ways to find any controls using javascript :-
1). Simple page ->
var txt_name = document.getelementsbyid('txt_employee_name');
2). Content page ->
var txt_name = document.getelementsbyid('<%=txt_employee_name.ClientId%>');
3). With Ajax ->
var txt_name = $get('txt_employee_name');
Asked In: Many Interviews |
Alert Moderator