Hi,
How can I alert the NumericTextBox value?
<ej:Dialog ID="Dialog199" Title="Sample" runat="server">
<DialogContent>
<div>
<br />
Your dialog contents here
<br />
<ej:NumericTextBox runat="server" ID="num1" Value="3"></ej:NumericTextBox>
<br />
<ej:Button runat="server" ID="button1" Text="OK" ClientSideOnClick="btnOK"></ej:Button>
<ej:Button runat="server" ID="button2" Text="Cancel"></ej:Button>
</div>
</DialogContent>
</ej:Dialog>
<script type="text/javascript">
function btnOK() {
var dialogObj = $("#<%=Dialog199.ClientID%>").data("ejDialog");
dialogObj.close();
var num1Obj = $("#<%=num1.ClientID%>").ejNumericTextBox("instance");
alert(num1Obj.value()); ???
}
</script>
Thanks,
Tomer