KW Online Tools Zone
Knowledge Walls
View All Tools Home
HOW TO SELECT FIRST FEW ELEMENTS IN JQUERY SELECTOR WITH EXAMPLE
[Jquery editor]
Run
Share Link
Clear
HTML [Ctrl+Enter] - to run
A
B
C
D
E
CSS [Ctrl+Enter] - to run
Jquery [Ctrl+Enter] - to run
$(function(){ $(".my_div").slice(0,3).css("color","red"); });
OUTPUT
Copyright © 2021 Knowledge walls, All rights reserved
Copyright © 2021 Knowledge walls, All rights reserved