insert a value inside the value attribute of input using jquery code example Example: get value of input jqueyr var str = $("#myInput"). val();