0
我试图让jQuery在加载标签时模拟点击ckFinder的刷新按钮。无论我使用什么代码,点击都不会注册/提醒。用Firebug,我抓住的刷新按钮来源:ckFinder - 使用jQuery模拟刷新点击
<a onclick="window.parent.CKFinder._.callFunction(3, this); return false;"
onfocus="window.parent.CKFinder._.uiButtonFocus(1, event);"
onkeydown="window.parent.CKFinder._.uiButtonKeydown(1, event);"
onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_10_label"
role="button" hidefocus="true" tabindex="-1" title="Refresh"
href="javascript:void('Refresh')" class="cke_button_refresh cke_off" id="cke_10" style="">
<span class="cke_icon"></span>
<span class="cke_label" id="cke_10_label">Refresh</span></a>
我试过下面的代码样本,甚至去根/通用标签,不工作。
$('span').click(function(){
var t = $(this).text();
alert(t);
});
$("#cke_10").click(function() { alert('cke_10'); });
$("a").click(function() { alert('a click'); });
$("a#cke_10").click(function() { alert('a cke click'); });
$("#cke_10_label").click(function() { alert('cke label'); });
$("span#cke_10_label").click(function() { alert('span cke label'); });
任何有越来越刷新按钮点击时,提醒任何运气?
是否将jQuery文件包含在第一位? –
是的,它是一个包含的主要jQuery文件。 – Hybride