No problem. Just use the following. This will behave exactly like serializing a form but using a div’s content instead.
$('#divId :input').serialize();
Check https://jsbin.com/xabureladi/1 for a demonstration (https://jsbin.com/xabureladi/1/edit for the code)
More Related Contents:
- jQuery: serialize() form and other parameters
- Submit form using AJAX and jQuery
- jQuery serializeArray doesn’t include the submit button that was clicked
- jQuery serialize does not register checkboxes
- jQuery serializeArray() key value pairs
- How do I make $.serialize() take into account those disabled :input elements?
- How do I modify serialized form data in jQuery?
- Convert Record to Serialized Form Data for sending via HTTP
- Using jQuery to grab the content from CKEditor’s iframe
- How can I create a “Please Wait, Loading…” animation using jQuery?
- Serialize form data to JSON [duplicate]
- Click outside menu to close in jquery
- Invoking a jQuery function after .each() has completed
- Find html element which id starts with
- Mobile Safari bug on fixed positioned button after scrollTop programmatically changed…?
- Programmatically create select list
- calculate the number of html checkbox checked using jquery
- Check, using jQuery, if an element is ‘display:none’ or block on click
- How to attach callback to jquery effect on dialog show?
- jQuery attribute selector for multiple values
- How can I execute multiple, simultaneous jquery effects?
- Where can I find a tutorial to get started learning jQuery? [closed]
- Detect page change on DataTable
- Fancybox: iframe doesn’t work
- Using jquery to make a POST, how to properly supply ‘data’ parameter?
- Detect change to selected date with bootstrap-datepicker
- Extension refuses to load the script due to Content Security Policy directive
- Performance differences between using “:not” and “.not()” selectors?
- jQuery UI – Droppable only accept one draggable
- Link to open jQuery Accordion