Sublime Text
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> </head> <body> <button type="button">Click here</button> <hr> <textarea cols="40" rows="5"></textarea> <script> $(document).ready(function(){ $("button").click(function(){ $("textarea").change(); }); $("textarea").change(function(){ $(this).css("background-color","yellow"); }); }); </script> </body> </html>
<!DOCTYPE html> <html> <head> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.0.min.js"></script> </head> <body> <button type="button">Click here</button> <hr> <textarea cols="40" rows="5"></textarea> <script> $(document).ready(function(){ $("button").click(function(){ $("textarea").change(); }); $("textarea").change(function(){ $(this).css("background-color","yellow"); }); }); </script> </body> </html>