Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Keydown in textarea jQuery

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #38741
    schart
    Participant

    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

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.