I open both edit and insert form. When I click update button(in insert form). I need to test validate any value of controls by javascript.
How I find control in insert form only without in edit form?
if i use below function . It get 2 controls that have the same ID in Edit and Insert Form.
How I find control in insert form only without in edit form?
if i use below function . It get 2 controls that have the same ID in Edit and Insert Form.
function GetGridServerElement(radGridID, serverID, ControlType) {
var grid = document.getElementById(radGridID);
var elements = grid.getElementsByTagName("*");
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
if (element.id.indexof(serverID)>0) {
if (ControlType == "rad") {
return $find(element.id);
}
else {
return element;
}
}
}
}