Compiler
jQuery Advanced
jQuery Siblings
Run
<!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.7.0.min.js"></script> <style> .box * { display: block; border: 2px solid #f2f3f5; color: #212b36; padding: 5px; margin: 15px; } </style> </head> <body> <h1>Select the Specific Sibling Elements</h1> <div class="box"> <div style="width:300px;"> <h2>h2</h2> <p>p</p> <span>span</span> </div> </div> <script> $(document).ready(function(){ $("h2").siblings("p").css({"color": "#ff4842", "border": "2px solid #ff4842"}); }); </script> </body> </html>
Editor Commands
Commands
Shortcut Key (Win)
Shortcut Key (Mac)
selectAll
Ctrl-A
Cmd-A
singleSelection
Esc
-
killLine
-
Ctrl-K (Mac)
deleteLine
Ctrl-D
Cmd-D
undo
Ctrl-Z
Cmd-Z
redo
Ctrl-Y
Shift-Cmd-Z, Cmd-Y
undoSelection
Ctrl-U
Cmd-U
redoSelection
Alt-U
Shift-Cmd-U
goDocStart
Ctrl-Home
Cmd-Up, Cmd-Home
goDocEnd
Ctrl-End
Cmd-End, Cmd-Down
goLineStart
Alt-Left
Ctrl-A
goLineEnd
Alt-Right
Ctrl-E
goLineRight
-
Cmd-Right
goLineLeft
-
Cmd-Left
goLineUp
Up
Ctrl-P
goLineDown
Down
Ctrl-N
goPageUp
PageUp
Shift-Ctrl-V
goPageDown
PageDown
Ctrl-V
newlineAndIndent
Enter
-
save
Ctrl-S
Cmd-S