Jquery 以编程方式单击Joomla中的链接
我有这个链接:Jquery 以编程方式单击Joomla中的链接,jquery,jquery-click-event,Jquery,Jquery Click Event,我有这个链接: <a id="launch_crop" class="modal" href="index.php?option=com_registration&view=crop&tmpl=component" rel="{handler: 'iframe', size: {x: 680, y: 370}}">Show modal2</a> 打开一个灯箱;我想在操作结束时以编程方式单击它 如果我这样做 jQuery(“启动作物”)。触发器(“单击
<a id="launch_crop" class="modal" href="index.php?option=com_registration&view=crop&tmpl=component" rel="{handler: 'iframe', size: {x: 680, y: 370}}">Show modal2</a>
打开一个灯箱;我想在操作结束时以编程方式单击它
如果我这样做
jQuery(“启动作物”)。触发器(“单击”);或
jQuery(“启动作物”)。单击()
它不工作,也不会在控制台中给出错误。如何强制单击链接?我想您必须先将单击事件绑定到元素,然后再触发它