內錨我有這樣的代碼在我的HTML查找span元素
<span id="u_0_10">You can also <a rel="my_Feed" href="#" ajaxify="send_notify?Qid=10&part=99">feed</a>Send me this feed</span>
我想知道我能找到錨與jQuery和火的jQuery中的onclick?
內錨我有這樣的代碼在我的HTML查找span元素
<span id="u_0_10">You can also <a rel="my_Feed" href="#" ajaxify="send_notify?Qid=10&part=99">feed</a>Send me this feed</span>
我想知道我能找到錨與jQuery和火的jQuery中的onclick?
$( '#u_0_10> A')每個(函數(){// 做你的東西 })。
因爲沒有人點擊了鏈接,我會做到這一點
$('#u_0_10 > a').trigger("click")
試試這個代碼
對於特定區間與ID身份識別碼
$('#myId a').click(function() {
/process click event here
});
對於所有的跨度用css myKlass
$('.myKlass a').click(function() {
/process click event here
});
所有跨度
$('span a').click(function() {
/process click event here
});
你讀過[jQuery的文檔(http://api.jquery.com/)?完成任何研究?這是在Google或Bing上大約一分鐘後回答的問題。 –
沒有人接受答案。仍在尋找更多。 – Jai