jQuery 编辑框和表单
我目前有一个表,它在服务器上填充域及其相关路径,例如
域路径函数
这些域是从 PHP 数组中获取的,但这就是总体思路。 现在,我希望能够在删除按钮旁边放置一个编辑按钮,单击时这两个字段会变成编辑框(这样数据就可以编辑,然后通过 ajax 更新到服务器)。 我一直在为此使用 jeditable,但它还不够。
example.com /home/domain 删除
另外,我想要一个添加按钮,单击该按钮会创建一个新行,然后可以将数据放入并发送到服务器。
我环顾四周并尝试阅读此处的类似问题,但我不确定最好使用的方法是什么。
任何帮助将不胜感激。
谢谢, 李.
I currently have a table that populates itself with domains and their relevant paths on a server, e.g.
Domain Path Functions
example.com /home/domain delete
The domains are grabbed from a PHP array, but thats the general idea.
Now, I want to be able to put an edit button next to my delete button, and when clicked the two fields turn into edit boxes (so the data can be edited and then updated via ajax to the server).
I've been using jeditable for this, but it doesn't really suffice.
Also, I'm wanting an add button, which when clicked creates a new row which data can then be put into and sent to the server.
I've looked around and tried reading the similar questions here, but I'm not sure what the best method to use is.
Any help would be greatly appreciated.
Thanks,
Lee.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@Brandi -
我需要能够同时编辑两个框,而不是一次一个。
@Brandi -
I need to be able to have both boxes editable at once, not one at a time.