You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
2.1 KiB
JavaScript
33 lines
2.1 KiB
JavaScript
6 years ago
|
$(function(){
|
||
|
$("#send-button").click(function(){
|
||
|
var emailI = RegCkElement("yemail","Please fill in a valid email address! Eg: service@chinahighlights.com","/^([a-zA-Z0-9_-_\.])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/","","",false);
|
||
|
var realnameI = StrIsNullOrEmpty("realname","Please fill in your full name.","","",false);
|
||
|
var AquestionI = StrIsNullOrEmpty("Aquestion","Please fill in your Question.","","",false);
|
||
|
if(emailI&&realnameI&&AquestionI)
|
||
|
$("#formquestion").submit();
|
||
|
});
|
||
|
//保存提交地址
|
||
|
$("#Q_URL").val(location.href);
|
||
|
});
|
||
|
document.writeln("<form action=\"/forms/save-tour-question.asp\" method=\"post\" name=\"formquestion\" id=\"formquestion\">");
|
||
|
document.writeln("<div class=\"questionForm roundCorner\"> <span class=\"questionFormTitle\">Got a question? Ask us here</span> <span class=\"replyTips\">We will reply you within one working day.</span>");
|
||
|
document.writeln("<p>");
|
||
|
document.writeln("<label>Type Your Questions Here:</label>");
|
||
|
document.writeln("<textarea name=\"Aquestion\" id=\"Aquestion\" rows=\"3\" class=\"roundCorner\" ></textarea>");
|
||
|
document.writeln("</p>");
|
||
|
document.writeln("<p>");
|
||
|
document.writeln("<label>Your Name:</label>");
|
||
|
document.writeln("<input type=\"text\" class=\"roundCorner\" name=\"realname\" id=\"realname\"/>");
|
||
|
document.writeln("</p>");
|
||
|
document.writeln("<p>");
|
||
|
document.writeln("<label>Your Email:</label>");
|
||
|
document.writeln("<input type=\"text\" name=\"email\" id=\"yemail\" class=\"roundCorner\"/>");
|
||
|
document.writeln("</p>");
|
||
|
document.writeln("<div class=\"clear\"></div>");
|
||
|
document.writeln("<div class=\"buttun01 searchBoxinput130\"><a id=\"send-button\">Submit »</a> </div>");
|
||
|
document.writeln("<input type=\"hidden\" value=\"Question: About "+Q_Subject+"\" name=\"subject\" />");
|
||
|
document.writeln("<input name=\"ServiceType\" type=\"hidden\" id=\"ServiceType\" value=\""+Q_ServiceType+"\" />");
|
||
|
document.writeln("<input name=\"ProductSN\" type=\"hidden\" id=\"ProductSN\" value=\""+Q_ProductSN+"\" />");
|
||
|
document.writeln("<input type=\"hidden\" name=\"Q_URL\" id=\"Q_URL\" />");
|
||
|
document.writeln("</div>");
|
||
|
document.writeln("</form>");
|