+ 1
Somebody help me i am not understanding selectors in jQuery
JQuery Selectors
3 Answers
+ 1
you can check difference here:)
https://www.w3schools.com/jquery/trysel.asp
It works same way as in css ...so you can search info about css selectors.
0
Selctors in jQuery are used to select HTML elements from the page to get or set values, to add remove style, to add remove controls.
you can select using tag name like
$('p').action ();
or usingelemnt id
$('#elemntid').action ();
or usin class name
$('.className').action ();
the action could be
width () to get or set width
height () to get or set height
css () to change any style proprties like color backgroud padding ...
addClass () to add class for elemnt
attr () to get or set attributes values
andalot of action can be done on elemnts that selext using jQuery selector
0
If you tell me the question you don't understand then i can help you