2016-04-25 62 views

回答

2

是的,你可以提及元素本身。

例如:

jQuery中
<p>This is a paragraph</p> 

$("p").text("Test message"); // This will select all p tags. 
0

是的,有很多選擇閱讀here

$('input[type="text"]').val(); 
0

面試官想約attribute selectors從你知道:

例如:

$("input[value='Foo Bar']") //select the input which value is 'Foo Bar' 
+0

非常感謝你 –

相關問題