選擇我有這樣的HTML,jQuery的 - 如何通過屬性
<a id="a_1" href="#" disabled_onclick="true">Link1</a>
<a id="a_2" href="#">Link2</a>
<a id="a_3" href="#" disabled_onclick="true">Link3</a>
<input id="b_1" type="submit" disabled_onclick="true">Button1</input>
<input id="b_2" type="submit">Button2</input>
<input id="b_3" type="submit">Button3</input>
現在我需要寫一個jQuery返回我的所有屬性在具有disabled_onclick屬性設置爲true我的HTML。在這種情況下,我應該得到3個元素,兩個鏈接標籤和一個輸入標籤。
可能重複:如何查詢與自定義命名空間的屬性](http://stackoverflow.com/questions/91518/jquery-attribute-selectors-how-to-query-for-an-attribute-with-a-custom-namespac) – 2012-02-09 11:31:43
你爲什麼要關閉標記 – 2012-02-09 11:33:18
@ dku.rajkumar:那是一個錯字 – bragboy 2012-02-09 11:35:27