I am trying to access a text field using 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 the firefox debugger, this says keyCode = 13, ...
But I want the actual value to be entered by the user. Please help me. Thank.
* Updated code
HTML
<input type="text" maxlength="5" size="2" value="1" id="paging_textbox">
Js
textValue = $("#paging_textbox").attr("value");
alert(textValue);
source
share