Thursday, September 29, 2011

val(String)

val(String val) returns jQuery
Set the value attribute of every matched element.

Example:

$("input").val("test");
HTML:
<input type="text" value="some text"/>
Result:
<input type="text" value="test"/>

No comments:

Post a Comment