Here is my code in which i generate comma separated string to provide a list of id to the query string of another page and i get the comma at the end of string.
<script type="text/javascript">
$(document).ready(function() {
$('td.title_listing :checkbox').change(function() {
$('#cbSelectAll').attr('checked', false);
});
});
function CotactSelected() {
var n = $("td.title_listing input:checked");
alert(n.length);
var s = "";
n.each(function() {
s += $(this).val() + ",";
});
window.location = "/D_ContactSeller.aspx?property=" + s;
alert(s);
}
</script>
I Need to remove this last comma. Can anyone tell me how to remove that. Thanks in Advance.