<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='docs.xsl'?>
<docs>
<method cat='DOM/Attributes' type='String' short='Get the content of the value attribute of the first matched element.' name='val'>
<desc>Get the content of the value attribute of the first matched element.

Use caution when relying on this function to check the value of
multiple-select elements and checkboxes in a form. While it will
still work as intended, it may not accurately represent the value
the server will receive because these elements may send an array
of values. For more robust handling of field values, see the
[http://www.malsup.com/jquery/form/#fields fieldValue function of the Form Plugin].</desc>
<examples>
<code>$("input").val();</code>
<result>"some text"</result>
<before>&lt;input type="text" value="some text"/&gt;</before>
</examples>
</method><method cat='DOM/Attributes' type='jQuery' short='	Set the value attribute of every matched element.' name='val'>
<desc>	Set the value attribute of every matched element.</desc>
<params type='String' name='val'>
<desc>Set the property to the specified value.</desc>
</params>
<examples>
<code>$("input").val("test");</code>
<result>&lt;input type="text" value="test"/&gt;</result>
<before>&lt;input type="text" value="some text"/&gt;</before>
</examples>
</method></docs>
