AJM AJM - 1 year ago 91
jQuery Question

Jquery/Javascript Setting the attribute value of a textfield

I have a

<input type='text' id='text' value='' />

How do I programmatically set the value attrribute using JQuery/Javascript

Answer Source

The simple easy way is:

$("#text").val ("foo");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download