0

I make a

var fields = $('#myDiv-:input').serialize();    
alert(checkoutFields);

this collects me all the inputs in myDiv but not the one input that is disabled(?)

how can I collect ALL inputs?

crunchy
  • 179
  • 10
  • 1
    `:input` select all inputs but `serialize()` doesn't accept `disabled` input. Because `disabled` input shouldn't send. – Mohammad Sep 14 '16 at 13:06
  • @Mohammad .. hi, thanks for the response :) .. but how can I achieve that the `disabled`-fields get serialized, too? – crunchy Sep 14 '16 at 13:43
  • 1
    [How to make $.serialize() take into account those disabled :input elements?](http://stackoverflow.com/questions/4748655/how-to-make-serialize-take-into-account-those-disabled-input-elements) – Mohammad Sep 14 '16 at 13:50
  • HA! DUDE! . thank you very much :) – crunchy Sep 14 '16 at 13:58

0 Answers0