Bhagwat Singh

PHP Developer Portfolio

Pass a Value to input Field using Jquery.

Hello,

here is the way to pass a value to a input field..
$('.user_login').val("type your text here"); // here is . is name of that input field.

what if input field is hidden, then u need to use this piece of code.
$("input[type=hidden][name=user_login]").val("type your text here");

This entry was posted in Jquery. Bookmark the permalink.

Site Nevigation