我有这样的部分在我的Rails应用程序(使用HAML标记):部分和文本字段
%p
= line_item.ART_ID
×
= line_item.quantity
= line_item.total_price
但我想用ajax这个line_item.quantity现场编辑,使用文本字段从HTML,但如何正确执行此操作,以便textfield值必须为line_item.quantity?我尝试所有的简单意见,但不是部分...
我有这样的部分在我的Rails应用程序(使用HAML标记):部分和文本字段
%p
= line_item.ART_ID
×
= line_item.quantity
= line_item.total_price
但我想用ajax这个line_item.quantity现场编辑,使用文本字段从HTML,但如何正确执行此操作,以便textfield值必须为line_item.quantity?我尝试所有的简单意见,但不是部分...
什么是你的问题?只是使用文本字段或ajax调用呢? –