jQuery中,将元素class值为info的单行文本框,绑定改变事件,当元素的内容发生改变的时候,该事件触发并为其添加背景色,下面代码书写正确的是
A. $(".info").change(function(){ $(this).css("backgrund-color","red")})
B. $(".info").onchange(function(){ $(this).css("backgrund-color","red")})
C. $(".info").hover(function(){ $(this).css("backgrund-color","red")})
D. $(".info").exchange(function(){ $(this).css("backgrund-color","red")})
jQuery中,用()获取当前元素前面的所有兄弟元素。
A. prevAll()
B. nextAll()
C. siblings()
D. children()
jQuery事件冒泡行为表现为当单击子元素时,会向上触发其()祖选元素的事件。
A. 兄弟元素
B. 子元素
C. 空元素
D. 父元素
代码:$("#btn").on(event,DOM,function(){})语法,事件绑定的参数中用来确定是事件类型的参数是
A. function
B. data
C. event
D. childSelector