Answers for "jquery elements to json"

0

jquery elements to json

var data = $('div.item').map(function(){
    return {
        classname: 'item',
        content: $(this).text()
    };
}).get();
Posted by: Guest on October-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language