Hi
User Array
Join
method to perform comma separated string
<script type="text/javascript">
$(function () {
$("[id$='SubmitBtn']").click(function () {
alert('testing');
var ISBN = [];
$("input:checkbox:checked", '#LocationDataList').each(function () {
var location = $('span', $(this).parent()).text();
ISBN.push(location);
});
alert(ISBN.join(','));
$("[id$='HiddenField1']").val(ISBN.join(','));
return false; ;
});
});
</script>