how to serialize only certian fields

I have a form - $('#myform')

now I would like to serialize only fields with a certain class

something like  $('#myform.myclass).serialize()

Or even better, only checkoboxes and inputboxes
RozamundaAsked:
Who is Participating?
 
StingRaYCommented:
$('Input[type="checkbox"].someclass')
0
 
StingRaYCommented:
To serialize only checkbox

$("form input[type=\"checkbox\"]").serialize();

Open in new window


To serialize only input textbox

$("form input[type=\"text\"]").serialize();

Open in new window

0
 
RozamundaAuthor Commented:
ok, how to serialize checkboxes of a certain class ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.