jQuery basic selector
What is a selector
The condition used to obtain various element node objects on the page is the selector.
document.getElementById()
document.getElementsByTagName();
document.getElementsByName();
Basic selector
$('#id attribute value') ----------->document.getElementById()
$('tag tag name')----------->document.getElementsByTagName();
$('. class attribute value') class attribute value selector
- ##$('*') Wildcard selector
- $('s1,s2, s3') Union selector
php.cn 基本选择器(灵感来源于css样式选择器)
大家好
欢迎来到php中文网让我们一起开始学习jQuery吧