/ Published in: jQuery

Just something simple to set and get the value of an form input field.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(this).attr('value', 'newvalue'); $(this).val();
Comments

$(this).attr('value', 'newvalue'); $(this).val();