Skip to content

Challenge Target Elements by ID Using jQuery

SaintPeter edited this page · 1 revision
Clone this wiki locally

Target Elements by ID Using jQuery

You can also target elements by their id attributes. Note that, just like with CSS declarations, you type a # before the id's name.

$("#target3").addClass("animated fadeOut");

Something went wrong with that request. Please try again.