Sublime Text
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> </head> <body> <textarea cols="30" rows="5">Lập Trình Web</textarea> <br> <button type="button">Click here</button> <br> <img src="../image/troll-face.png" style="display:none"> <script> $(document).ready(function(){ $("textarea").select(function(){ $("button").mouseup(); }); $("button").mouseup(function(){ $("img").show(); }); }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> </head> <body> <textarea cols="30" rows="5">Lập Trình Web</textarea> <br> <button type="button">Click here</button> <br> <img src="../image/troll-face.png" style="display:none"> <script> $(document).ready(function(){ $("textarea").select(function(){ $("button").mouseup(); }); $("button").mouseup(function(){ $("img").show(); }); }); </script> </body> </html>