Introduction:
Description:
In previous post I explained split the string using split function in jquery and many articles relating to JQuery. Now I will explain how to get or set textbox value in JQuery.
In previous post I explained split the string using split function in jquery and many articles relating to JQuery. Now I will explain how to get or set textbox value in JQuery.
If
we want to get textbox value in jquery or if we need to set
value in textbox using jquery we need to write the
code like as shown below
// Get textbox value
$('#txtName').val()
// Set textbox value
$('#txtName').val("your
message")
|
If
you want check this code in sample check below code