我有一个使用Thickbox表单构建的短代码,该表单包含返回值的各种输入。这很好用。但是,如果用户再次打开表单,我希望现有值(如果存在)重新填充表单。
Here is an example of my shortcode:
[schema type="person" name="Andrew Norcross" description="I make interwebs" ]
var code = $(\'div#wp-content-editor-container textarea\').text().match(/\\[schema(.*)\\]/g);
so what I want to accomplish:
检查短代码数据中的特定部分(即,name=“Andrew Norcross”)获取引号中的值,并将其插入表单的字段中我尝试了几种方法,但似乎没有任何效果。