Set Form Input Value


/ Published in: jQuery
Save to your folder(s)

Just something simple to set and get the value of an form input field.


Copy this code and paste it in your HTML
  1. $(this).attr('value', 'newvalue');
  2. $(this).val();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.