To get or set the value of a textbox using jQuery you can use the following snippet.

Sample jQuery

$("#myTextField").val() //get
$("#myTextField").val("newValue") //set

5 thought on “How to get or set the value of a textbox using jQuery”

Leave a Reply