I am trying to access textbox value using the jQuery code;
$("#pg_textbox").val();
But it does not return the correct value in Firefox/Safari..
Even
$("#paging_textbox").attr("value")
does not work..
In firefox debugger, it kind of says keyCode = 13, ...
But I want the actual value entered by the user..
Please help me. Thank you.
*Updated code
HTML
<input type="text" maxlength="5" size="2" value="1" id="paging_textbox">
JS
textValue = $("#paging_textbox").attr("value");
alert(textValue);
Check the id/name of your text box.
HTML:
Javascript:
Try to check this sample on jsFiddle.