The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Keydown in textarea jQuery
So I’m doing a css border change when a key is pressed in the textarea “#notes” . The code I’m currently using is
$('#notes').keydown(function (e){ $(".button").css("border", "2px solid red"); }
It’s not really working. (The idea is that when someone types in the textarea, the border around the save button will turn red to indicate that there are unsaved changes). What am I doing wrong?
Original Post: http://an.schart.net/post.php?id=29