JQuery duplicate alerts on update? why?

Posted by russp on Stack Overflow See other posts from Stack Overflow or by russp
Published on 2010-05-27T19:56:18Z Indexed on 2010/05/27 20:11 UTC
Read the original article Hit count: 168

Filed under:
|
|

I have this JQuery function - that nearly works (so far!) BUT the alerts are duplicated, each appears twice any clues/ideas please

$(function() {
$("#col1, #col2, #col3").sortable({
connectWith: '.column',
update : function () {
serial = $('#col1').sortable('serialize');
serial1 = $('#col2').sortable('serialize');
serial2 = $('#col3').sortable('serialize');
alert(serial);  
alert(serial1); 
alert(serial2);         
}

}); });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui