我有这个HTML代码,长这样:
<input type="submit" name="savebutton" class="first button" />
<input type="submit" name="savebutton" class="second button" />
还有 JavaScript:
jQuery("input.second").click(function(){
// trigger second button ?
return false;
});
我如何通过点击第一个按钮来触发第二个按钮的点击事件?请注意,我对第二个按钮没有任何控制权,无论是在html上还是在其点击事件上...