以下代码在Firefox中运行良好但在chrome中不正常(在Chrome中它只打开第一项) 它应该在新标签中打开所有选中的链接。有什么建议吗?
jQuery(document).ready(function(){
jQuery("#open_in_new_tab").click(function(){
jQuery("#sales_order_grid_table input:checked").each(function(index){
var $href=jQuery(this).parent().parent().attr("title");
window.open($href);
});
});
});