0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

jquery よく使うもの

Last updated at Posted at 2020-07-14

■jQuery = javascript
document.querySelector("要素") = $("h1")

■要素クリックをトリガーで発動  
$("要素").click(function(){
$("要素").css("color","purple");
});

■要素を削除する。
$("要素").remove();

■要素をどこに突っ込むか
$("要素").before("<要素>要素> ")

before() 要素の前に突っ込む
after() 要素の後に突っ込む
prepend() 要素の中の前に突っ込む
append() 要素の中の後に突っ込む

■Event reference
$("要素").on("mouseover",function(){

})
※MDN event reference
https://developer.mozilla.org/ja/docs/Web/Events

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?