Javascript
-
i cant get the value of any control in the javaScript function function clickIt(droplist,x) { //alert is working alert('it is step2'); //color of the row 2 which droplist belongs changes droplist.parentElement.parentElement.style.backgroundColor='#88AAFF'; //HERE IS PROBLEM i Get Undefined in Alert alert( droplist.parentElement.parentElement.cells[0].value); }
-
i cant get the value of any control in the javaScript function function clickIt(droplist,x) { //alert is working alert('it is step2'); //color of the row 2 which droplist belongs changes droplist.parentElement.parentElement.style.backgroundColor='#88AAFF'; //HERE IS PROBLEM i Get Undefined in Alert alert( droplist.parentElement.parentElement.cells[0].value); }
You need to find the control via: document.getElementByid("Codtrolid")
/***********************/ Parwej Ahamad g.parwez@gmail.com /***********************/