2013년 8월 10일 토요일

jquery selector ElementName  $("DIV")

ElementName a $("DIV")
문서 내에 동일한 Element를 모두 가져 온다.




<html>
<head>
<meta charset="utf-8"/>
<script src="/ajaxjquery/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("li").css("border", "#ff0000 2px dashed");
});
</script>
<body>
//HTML
<UL>
<li>오엔제이프로그래밍 공식홈피</li>
<li>오라클자바커뮤니티</li>
</UL>
</body>
</html>

댓글 없음:

댓글 쓰기