I was wondering how is it popssible to populate forms using JSON?
I have a JSON string which I get using php's json_encode()
And I want to use the JSON string to populate form controls (such as textarea or text input).
如果不使用外部插件(比如我看到的jQuery-populate-plugin),我怎么能实现这样的事情呢.
EDIT: JSON format:
[{"id":"41","parent_id":null,"node_name":"name","slug":"","lft":"3","rgt":"4"}]
这是我从json_encode()得到的信息