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
180
How to find a webcurrencyedit in WebdialogWindow
posted

Greetings,

I have a webcurrencyedit control inside of a webdialogwindow.  I have some code that sets decimal places (banking software, it has to act like an adding machine - 600 would be 6.00).  The code works fine on a control outside of the webdialogwindow.  But on the control inside the webdialogwindow, it breaks.  It can't find the webcurrencyedit.

 My webcurrencyedit is named 'newDepositAmount'

I have tried the following, all unsuccessfully:

var DepositAmount = $find(newDepositAmount).innerText;

var DepositAmount = $find<%= newDepositAmount.ClientID %>").innerText;

var DepositAmount = document.getElementById"<%= lblValidation.ClientID %>).innerText

 I need to get the text and then modify it and then reset it to the new value.

 Please advise.