This free HTML JavaScript tutorial provides 45+ JavaScript/jQuery tips and tricks that help you work in JavaScript tasks better, through live HTML JavaScript example codes. List of some JavaScript tips and tricks:
- Refreshing the src of an image with jQuery?
- Check if an image is loaded or not with jQuery
- Remove selected text after mouse double click JavaScript event
- Validate an email address
- Check if an HTML control element exists
- Cancel an AJAX request
- Select all HTML checkboxes
- Selecting root element of a certain level in the document
- Searching a string in jQuery
Please go to the full post page for full detailed tips and HTML JavaScript example codes, then try some JavaScript tutorials:
- 10 Small Javascript Tricks You Should Master
- Some Basic Tips and Tricks for Speeding Up JavaScript
- 10 jQuery and JavaScript Tips and Tricks to Improve Your Code
- 5 Good and Small JavaScript Tips and Tricks
- Demo
- Enlarge
- Reload
- New window
Free iPage Web Hosting for First Year NOW
If you're still looking for a reliable web host provider with affordable rates, why you don't take a little of time to try iPage, only with $1.89/month, included $500+ Free Extra Credits for the payment of 24 months ($45)?
Over 1,000,000+ existisng customers can not be wrong, definitely you're not, too! More important, when you register the web hosting at iPage through our link, we're going to be happy for resending a full refund to you. That's awesome! You should try iPage web hosting for FREE now! And contact us for anything you need to know about iPage.
1.
$().ready(
function
() {
2.
$(
'#add'
).click(
function
() {
3.
!$(
'#select1 option:selected'
).appendTo(
'#select2'
);
4.
});
5.
$(
'#remove'
).click(
function
() {
6.
!$(
'#select2 option:selected'
).appendTo(
'#select1'
);
7.
});
8.
});
1.
$(document).ready(
function
(){
2.
$(
"#checkboxall"
).change(
function
(){
3.
var
checked_status =
this
.checked;
4.
$(
"input[name=checkall]"
).attr(
"checked"
, checked_status);
5.
});
6.
7.
});
1.
$(document).ready(
function
() {
2.
var
pathname = window.location.pathname;
3.
});
01.
$(
function
() {
02.
$(document).keypress(
function
(e){
03.
switch
(e.which){
04.
// "ENTER"
05.
case
13:
06.
alert(
'enter pressed'
);
07.
break
;
08.
09.
// "s"
10.
case
115:
11.
alert(
's pressed'
);
12.
break
;
13.
14.
(...)
15.
16.
}
17.
});
18.
19.
});
1.
$(
'#target div:not(#exclude)'
).hide();
2.
//or
3.
$(
'#target'
).children().filter(
':not(#exclude)'
).hide();
1.
$(
'element'
).bind(
'resize'
,
function
(){
2.
alert(
'Height changed to'
+ $(
this
).height() );
3.
}
1.
$(
'someTableSelector'
).find(
'tr:gt(0)'
).remove();
1.
1 level:
2.
$(
'*:not(* *)'
);
3.
2 level:
4.
$(
'*:not(* *)'
).find(
'> *'
);
5.
3 level:
6.
$(
'*:not(* *)'
).find(
'> * > *'
);
1.
var
foundin = $(
'*:contains("some string bla bla")'
);
1.
alert($(document).scrollTop());
- Sent (0)
- New
Save up to 630$ when buy new iPhone 15
GateIO.gomymobi.com
Free Airdrops to Claim, Share Up to $150,000 per Project
https://tooly.win
Open tool hub for free to use by any one for every one with hundreds of tools
chatGPTaz.com, chatGPT4.win, chatGPT2.fun, re-chatGPT.com
Talk to ChatGPT by your mother language
Dall-E-OpenAI.com
Generate creative images automatically with AI
AIVideo-App.com
Render creative video automatically with AI
Jquery is great Reply
Thanks CaoPhong ...