Tag: grails plugin

Grails richui自动完成克隆文本框

我在我的应用程序中使用grails richui autocomplete字段。 它适用于我的静态文本框,但是当我克隆文本框时,此function对克隆的文本框不起作用,甚至没有显示任何错误。 知道如何解决这个问题 这是我的代码: 在顶部 这是我的自动填充字段 而我正在这样克隆 var counter = 1; $(“#addRow”).click(function() { counter++; var cln = $(‘#static_table tbody>tr:last’).clone(true); cln.find(“[id^=’filterLocation’]”).each(function(i, val) { val.id = val.id.match(/^([^0-9]+)[0-9]*$/)[1] + “” + counter; }); return false; }); 我克隆整行,做一些隐藏/显示操作并增加id。

使用ajax创建Grail Jquery模式窗口和表单发布?

我有以下代码: Enter your Comment Please Create new user 和我的模态窗口使用jquery-UI $(function(){ $(“#dialog-form”).dialog ({ autoOpen:false, height:300, resizable:false, width:350, modal:true, buttons: { “Attach Comment”: function() { alert(‘assum it already submitted’); // ? ? ? this time what can i add to post a form to a controller attachComments with commentArea posted. $(this).dialog(“close”); }, Cancel: function() { $(this).dialog(“close”); } […]