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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -