0
请说我,我可以从adminhtml网格获取/编辑提交。 jQuery没有得到这个领域的价值。事件 - 点击行。我尝试编辑“grid.js”。如何我可以从网格获取/编辑字段(adminhtml)
alert(jQuery("table#productGrid_table tbody>tr>td:nth-child(3)").html)
没有得到结果
如果
alert(jQuery(this).html)
结果是
function(a){ifa===b}return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace....
idealy我不会使用该脚本,在简单的表是工作
jQuery("table#productGrid_table tbody>tr>td:nth-child(3)").on('click', function(){
jQuery(this).parent('tr').find('input:checkbox').attr("checked","checked");
jQuery(this).html("<input type='text' value='"+jQuery(this).text()+"' class='filterInput' autofocus/>");
}).on('click', 'td input', function(){
return false;
}).on('focusout', 'td input', function(){
jQuery(this).parent('td').text(jQuery(this).val());
});
有人请帮助我,THX
什么是你想实现什么? – benmarks
我尝试从adminhtml网格编辑product_name(点击字段,重命名) –