select - jQuery - dblclicking on span changing it to input text when blur confirm popsup when clicking ok it marks while mouse moving -
i have searched stackoverflow mine somehow different. have confirm inside.
$(document).on('blur', '#to_edit', function() { yes = confirm('r u sure?'); if(yes) $(this).parent().html(edited_value); else $(this).parent().html(main_value); }
when confirm popsup , when user clicks on ok mouseup triggered when focusing-out (blur) element hasn't finished yet , marking texts in page while moving mouse.
Comments
Post a Comment