Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
148 views
in Technique[技术] by (71.8m points)

javascript - How to call data:contact and expr:id in CDATA?

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 + &quot;_contact-form-name&quot;" 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 + &quot;_contact-form-email&quot;" 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 + &quot;_contact-form-email-message&quot;" name="email-message" rows="5"/><p/>
<input class="contact-form-button contact-form-button-submit" expr:id="data:widget.instanceId + &quot;_contact-form-submit&quot;" 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 + &quot;_contact-form-error-message&quot;"/>
<p class="contact-form-success-message" expr:id="data:widget.instanceId + &quot;_contact-form-success-message&quot;"/></div></form></div>');
};```
question from:https://stackoverflow.com/questions/65851652/how-to-call-datacontact-and-exprid-in-cdata

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...