JavaScript
text() 设置或返回所选元素的文本内容
html() 设置或返回所选元素的内容(包括 HTML 标记)
val() 设置或返回表单字段的值
attr() 设置或获取属性 $("#w3s").attr("href","http://www.w3school.com.cn/jquery");
document.getElementById();
document.getElementByTagName();
$("input[type=file]")
$("input[name='myfiles']")
$("li[style='display:none']")
$("body").on("click",".dropDownText",function() {
$(this).siblings('.dropDown').toggle();
});
$("#addImg").click(function(
$("this").hide();
))
parent() parent("ul")
parents() parents("ul")
children() children("p.1")
find() find("*")
sibings() sibling("p")
next()
nextAll()
nextUntil()
prev()
prevAll()
prevUntil()
show()
hide()
toggle()
append()
prepend()
after(obj)
before(obj)
remove()
empty()
<form id="loginform">
<a onclick="document:loginform.submit()">登录</a>
</from>
input框设置readonly后,不能通过val()设置value值,但能显示val()
只能通过attr(“value”,“”)