jQuery日本語リファレンス

jQuery does not mean Japanese Query...

ヌー

Core/API/jQuery - Sample Code

get(index)

	 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
 <script src="http://code.jquery.com/jquery-latest.js"></script>
 <script>
 window.onload = (function(){try{
 $("*", document.body).click(function (e) {
 e.stopPropagation();
 var domEl = $(this).get(0);
 $("span:first").text("Clicked on - " + domEl.tagName);
 });
 }catch(e){}});</script>
 <style>
 span { color:red; }
 div { background:yellow; }
 </style>
<style>html,body{border:0; margin:0; padding:0;}</style></head>
<body>
 <span>&nbsp;</span>
 <p>In this paragraph is an <span>important</span> section</p>
 <div><input type="text" /></div>
</body>
</html>
 
	 
[実行結果] [フレーム]
[get(index) の説明へ]
© Copyright 2009 by semooh.jp | Design by Free CSS Templates - Thanks to Dubai Apartments

AltStyle によって変換されたページ (->オリジナル) /