store return json value in input hidden field

前端 未结 6 1211
予麋鹿
予麋鹿 2020-12-04 08:57

I was wondering if it\'s possible to store the return json in a hidden input field. For example this is what my json return:

[{\"id\":\"15aea3fa\",\"firstnam         


        
6条回答
  •  再見小時候
    2020-12-04 09:22

    just set the hidden field with javascript :

    document.getElementById('elementId').value = 'whatever';
    

    or do I miss something?

提交回复
热议问题