|
|
|
|
|
by conorgdaly
2249 days ago
|
|
> You could use AJAX to tell the server to add the new item, but now you need to update your UI list accordingly. You could use jQuery to construct a new DOM element and append it, but now that list element exists in two different places: in your jQuery code and in your template on the server. Your server can just return html which is ready to be inserted into DOM. You don't need to duplicate the node view creation logic client side. |
|