Posts that Ben is monitoring

Subscribe to Posts that Ben is monitoring 3 post(s) found

Jun 28, 2008
Avatar Seb 133 post(s)

Topic: Can't get SELECTED Value

could you share a full example code please?

 
Jun 25, 2008
Avatar StarPeak 24 post(s)

Topic: Can't get SELECTED Value

did you try to give the form an id attribute – let’s say ‘my-form’, give the select a name attribute, and do use a

buttons: [{ title: ‘Allow’, callback: function(win) { alert($H($(“my-form”).serialize(true)).toJSON()); } ...

 
Jun 25, 2008
Avatar StarPeak 24 post(s)

Topic: Can't get SELECTED Value

Do you wrap your select in a form? $F is a convenience alias of Form.Element.getValue.

You could also give the form element an id and get the form values as hash by using $(‘your-form-id-here’).serialize(true). The select has to have a name attribute than of course.