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"></textarea> <script> $(document).ready(function(){ $("textarea").keydown(function(){ $(this).css("background-color","yellow"); }); $("textarea").keyup(function(){ $(this).css("background-color","pink"); }); }); </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"></textarea> <script> $(document).ready(function(){ $("textarea").keydown(function(){ $(this).css("background-color","yellow"); }); $("textarea").keyup(function(){ $(this).css("background-color","pink"); }); }); </script> </body> </html>