jQuery function in javascript loop -
i got div's i'm editing 'jeditable' works perfectly! want give users alert ask them if want edit post. <script type="text/javascript" src="jquery-1.9.1.js"></script> <script type="text/javascript" src="jquery.jeditable.js"></script> <script type="text/javascript"> $(document).ready(function jeditable() { $("div[title='article']").click (function() { var edit; edit = confirm("editing article?"); if (edit == true) { $('.edit').editable('x2.php', { cancel : 'cancel', submit : 'ok', onblur: 'ignore', }); } else { alert("canceling edit.."); } }); }); </script> 1)when alert pops , cancel it, nothing happens (inten...