Multiple attribute based jquery map with join
How to add multiple attribute based selector and
var AllchkIDs = $('input[sid="ChkFlddisp"]').map(function () { var nval = $(this).val(); // alert(nval); var chkid = 'input:checkbox[vid="ChkFlddisp"][value=' + nval + ']'; var ischecked = $(chkid).is(':checked'); // alert(ischecked); nval += !$(this).is(':checked') ? " ASC" : " DESC"; //nval = ischecked ? nval : ""; if (ischecked) { return nval } }).get().join(',');
Leave a Reply