jQuery
jQuery.browser.msie jQuery.browser.mozilla jQUery.opera jQuery.safari
<div class="one twe three four"></div> classの場合は、idと違ってスペース区切りで複数の値を設定できる。 2番目のクラスを指定する方法。めっさ楽。 素jsだと正規表現でうんこみたいなソースになっちゃうから1行って素敵過ぎる。 $('div').toggleClass('two');
jQueryについて勉強し始める。 ほんと基本中のところから。 ・jQueryのライセンス>http://docs.jquery.com/Licensing CSSセレクタが使えるよ 1. spanタグを指定する時 // jQuery $('span') // JavaScript var hoge = document.getElementsByTagName('span');…