This is a migrated thread and some comments may be shown as answers.

[Solved] Get CurrencyTextBox value by jquery

2 Answers 47 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
aron
Top achievements
Rank 2
aron asked on 11 Mar 2011, 12:01 AM
Hello all!

I have this control:

                    <%=Html.Telerik().CurrencyTextBox()
                        .Name("amount")
                        .MinValue(0)
                        .MaxValue(1000000)
                        .Spinners(false)                    
                    %>


I want to capture its value from javaScript when I press a button but I get an empty variable


                        var myAmount = $("#amount").val();


In short, how can I capture the CurrencyTextBox´s value through JQuery (javascript)



Best regards

2 Answers, 1 is accepted

Sort by
0
aron
Top achievements
Rank 2
answered on 11 Mar 2011, 12:21 AM
Upps!, It was really easy

var myAmount =
$("#amount").data("tTextBox").value();
0
Sowjanya
Top achievements
Rank 1
answered on 31 Jan 2013, 09:29 AM
var myAmount = $("#amount").data("tTextBox").$wrapper[0].innerText;
Tags
NumericTextBox
Asked by
aron
Top achievements
Rank 2
Answers by
aron
Top achievements
Rank 2
Sowjanya
Top achievements
Rank 1
Share this question
or