Hi,
I have a user control which has a modal popup. This modal popup has a grid and few controls like textboxes and comboboxes. I am trying to clear out all the controls when the close button is clicked. I am using javascript to close the modalpopup. but to clear the controls, $get('<%=txtbox1.clientID%>') method is returning null. can someone please help me?
Here is my code snippet.
function close_Click() {
var mdlPopup1;
mdlPopup1 = $find('modalPopup');
mdlPopup1.add_hidden(clearInputFields);
mdlPopup1.hide();
}
function clearInputFields() {
var name = $get('<%=txtName.clientID%>');
name.value="";
}
View Complete Post