logo
Blog single photo

How to get multiple fields value as a comma separator using jquery


                        

How to get multiple fields value as a comma separator using jquery


var options = $(".your_fields_class option:selected").map(function () { return $(this).val(); }).get().join(',');

alert(options );

Blog single photo

if you are working with text fields then..


                        

var options = $(".your_fields_class").map(function () { return $(this).val(); }).get().join(',');

alert(options );

Top