JQuery how to get value of a textbox

JElster
JElster used Ask the Experts™
on
Trying to get the value of a text box

   <asp:Textbox  ID="lblTotal" runat="server" />


By calling

  var n = $('#lblTotal').text();

             
                alert(n);


What is wrong.. returns blank..?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Microsoft ISV Partner
Commented:
<asp:Textbox input id="lblTotal" type="text" value="" runat="server" />

Author

Commented:
still nothing ?
Try val():

var n = $('#lblTotal').val();

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial