.val() will return it's value - regardless of its checked state. However, the serialize methods take into account the checked state and won't return teh value if it isn't checked.
--John On 9/11/07, Pyrolupus <[EMAIL PROTECTED]> wrote: > > One questions about new functionality, specifically .val(): > > http://docs.jquery.com/Release:jQuery_1.2/Attributes > > When accessing a checkbox or radio button with a "value" attribute, > does val() return its checked state, its value attribute, both its > value and its checked state, or its value attribute only if > checked="true"? > > I.e., <input type="checkbox" id="chkMe1" value="Check 1" /> > vs. <input type="checkbox" id="chkMe2" value="Check 2" checked /> > vs. <input type="checkbox" id="chkMe3" /> > vs. <input type="checkbox" id="chkMe4" checked /> > > Along the same lines, how will the new .serialize() > and .serializeArray() handle the same situations? > > Cheers, > Pyro > >