![]() Once you press any key inside the input field, the background color will change to skyblue. $("input").css("background-color", "teal") Įxample for jQuery keyup event Enter anything: Let us now see an example illustrating the order of events keydown() and keyup(). In the above example, we saw that as soon as the key is released, the keyup event is triggered which in turn executes the attached function that changes the background color.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |