javascript – How not to serialize certain element type with jQuery


I have a form and I don't want to "serialize" the checkbox input's , so I tried some options such as below:

var form = $('#service-item-form :not(:input[type="checkbox"])').serialize();

But unfortunately it doesn't work! I would like to know what I can try to do to resolve this issue.


Try the following:

var form = $('#service-item-form')
    .find('input, textarea, select')
Scroll to Top