Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
client side scripting for Web Numeric Edit
posted

I want to write a cliet side script which will add values of two different web numeric edits and insert into a third one. I am able to read the values from the web numeric edit but can't insert the total into the third one. Here is my code:

var x = document.getElementById("<%=wne_cost_of_land.ClientID%>").value; // gets the value

var y = document.getElementById("<%=wne_cost_of_building.ClientID%>").value; // gets the value

var z = Number(x) + Number(y); // total is calculated

document.getElementById("<%=wne_total_cost.ClientID%>").value = z //does nothing

Can anybody please suggest me how to insert the value in the web numeric edit on client side.

Thanks

 

Parents Reply Children
No Data