I have a form and i want to call data:contact and expr:id in part of the code, but it is not working for my and the areas are empty.
how can I fix the form?
if (window['location']['href']['indexOf']('/p/order.html') > -1) {
document['title'] = 'order';
$('.item-post .post-body')['html']('<div class="my-shopping"><form name="contact-form"><p/><data:contactFormNameMsg/><br/>
<input class="contact-form-name" expr:id="data:widget.instanceId + "_contact-form-name"" name="name" size="30" type="text" value=""/><p/>
<data:contactFormEmailMsg/> <span style="font-weight: bolder;">*</span><br/>
<input class="contact-form-email" expr:id="data:widget.instanceId + "_contact-form-email"" name="email" size="30" type="text" value=""/><p/><data:contactFormMessageMsg/> <span style="font-weight: bolder;">*</span><br/><textarea class="contact-form-email-message" cols="25" expr:id="data:widget.instanceId + "_contact-form-email-message"" name="email-message" rows="5"/><p/>
<input class="contact-form-button contact-form-button-submit" expr:id="data:widget.instanceId + "_contact-form-submit"" expr:value="data:contactFormSendMsg" type="button"/><p/>
<div style="text-align: center; max-width: 222px; width: 100%"><p class="contact-form-error-message" expr:id="data:widget.instanceId + "_contact-form-error-message""/>
<p class="contact-form-success-message" expr:id="data:widget.instanceId + "_contact-form-success-message""/></div></form></div>');
};```
question from:
https://stackoverflow.com/questions/65851652/how-to-call-datacontact-and-exprid-in-cdata 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…