twitter bootstrap - Assigning Value but get null value in Jquery -
i assign value getting value variable string when print value null value variable. using "ids" variable assign value.
here code
ids = ""; if ($('input[name=msg_sel]:checked', '#' + tableid).length) { $.colorbox({ initialheight: '0', initialwidth: '0', href: "#confirm_dialog", inline: true, opacity: '0.3', oncomplete: function () { $('.confirm_yes').click(function (e) { e.preventdefault(); $('input[name=msg_sel]:checked', otable.fngetnodes()).closest('tr').fadeto(300, 0, function () { $(this).remove(); otable.fndeleterow(this); ids += $(this).attr("id").substring(3); //alert(ids); here works correct $('.select_msgs', '#' + tableid).attr('checked', false); }); // here shows null value alert(ids + ""); }); } }); }
Comments
Post a Comment