On Aug 3, 4:57 pm, Mike Alsup <mal...@gmail.com> wrote:
> > if you have in html the following:
>
> > <input type="checkbox" value="true" name="check"/>
> > <input type="hidden" value="false" name="check"/>
>
> > ajaxSubmit will submit :
>
> > check : true
> > check : false
>
> > $("#check").fieldValue() will return
> > [ true ]
>
thanks for the comment... i should probably use $
('[name=check]').fieldValue() instead of use the id...
still this results in ['on','false' ] when the checkbox is checked,
while ajaxSubmit posts check:true , check:false
> > so, this is inconsistent with the result of ajaxSubmit, it should
> > return  [true,false]
>
> What is #check?  Unless it's a select element you'll only have one
> value for that element.  ajaxSubmit submits an entire form but your
> call to fieldValue is asking for the value of a specific element.

Reply via email to