jQuery Class Selector | How to use jQuery Class Selector - jQuery Tutorial 13
1.1 هزار بار بازدید -
7 سال پیش
-
Notes for You:: jQuery Class
Notes for You:: jQuery Class selector.
- To select html element(s) by their class attribute value, we use jQuery class selector.
Syntax of jQuery class selector:
$(“CSS class selector”).action(parameters);
- To the jQuery function, if we pass the CSS class selector then it is called as jQuery class selector.
- I.e. a jQuery function with CSS class selector as a parameter is called as jQuery class selector.
Example:
$(".blueBorder").css( {"border":"2px solid blue"} );
- It selects any HTML element whose class attribute value is set to “blueBorder” and applies the border of 2px solid blue.
Note: in CSS dot(.) symbol indicates class selector.
=========================================
Follow the link for next video:
jQuery Tutorial 14 - jQuery ID Selector
jQuery ID Selector | How to use jQuer...
Follow the link for previous video:
jQuery Tutorial 12 - jQuery Tag Selector | jQuery Element Selector
jQuery Tag Selector | jQuery Element ...
=========================================
jQuery Tutorials Playlist:-
jQuery Tutorials
=========================================
Watch My Other Useful Tutorials:-
jQuery UI Tutorials Playlist:-
jQuery UI Tutorials
Bootstrap Tutorials Playlist:-
Bootstrap Tutorials
Dreamweaver Tutorials Playlist:-
Dreamwear Tutorials
=========================================
► Subscribe to our YouTube channel:
chidrestechtutorials
► Visit our Website:
https://www.chidrestechtutorials.com
=========================================
Hash Tags:-
#ChidresTechTutorials #jQuery #jQueryTutorial
- To select html element(s) by their class attribute value, we use jQuery class selector.
Syntax of jQuery class selector:
$(“CSS class selector”).action(parameters);
- To the jQuery function, if we pass the CSS class selector then it is called as jQuery class selector.
- I.e. a jQuery function with CSS class selector as a parameter is called as jQuery class selector.
Example:
$(".blueBorder").css( {"border":"2px solid blue"} );
- It selects any HTML element whose class attribute value is set to “blueBorder” and applies the border of 2px solid blue.
Note: in CSS dot(.) symbol indicates class selector.
=========================================
Follow the link for next video:
jQuery Tutorial 14 - jQuery ID Selector
jQuery ID Selector | How to use jQuer...
Follow the link for previous video:
jQuery Tutorial 12 - jQuery Tag Selector | jQuery Element Selector
jQuery Tag Selector | jQuery Element ...
=========================================
jQuery Tutorials Playlist:-
jQuery Tutorials
=========================================
Watch My Other Useful Tutorials:-
jQuery UI Tutorials Playlist:-
jQuery UI Tutorials
Bootstrap Tutorials Playlist:-
Bootstrap Tutorials
Dreamweaver Tutorials Playlist:-
Dreamwear Tutorials
=========================================
► Subscribe to our YouTube channel:
chidrestechtutorials
► Visit our Website:
https://www.chidrestechtutorials.com
=========================================
Hash Tags:-
#ChidresTechTutorials #jQuery #jQueryTutorial
7 سال پیش
در تاریخ 1396/03/21 منتشر شده
است.
1,123
بـار بازدید شده