jqueryObject = $(domObject);
từ jQuery sang DOM
domObject = jqueryObject.get(0);
domObject = jqueryObject.get()[0];
jqueryObject = $(domObject);
domObject = jqueryObject.get(0);
domObject = jqueryObject.get()[0];
$("button").click(function(){
$("p").hide("slow", function(){
alert("The paragraph is now hidden");
});
});
$("button").click(function(){
$("p").hide(1000);
alert("The paragraph is now hidden");
});
<button> element with the class 'continue' and change its HTML to 'Next Step...'
1
|
|
#banner-message element that is hidden with display:none in its CSS when any button in #button-container is clicked.
1
2
3
4
|
|
/api/getWeather with the query parameter zipcode=97201 and replace the element #weather-temp's html with the returned text.
1
2
3
4
5
6
7
8
9
|
|