Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Code Generated by JotForm (do not edit) -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/punycode/1.4.1/punycode.min.js"></script>
- <script src="https://cdn.jotfor.ms/static/prototype.forms.js" type="text/javascript"></script>
- <script src="https://cdn.jotfor.ms/static/jotform.forms.js?3.3.10918" type="text/javascript"></script>
- <script src="https://js.jotform.com/vendor/postMessage.js?3.3.10918" type="text/javascript"></script>
- <script src="https://js.jotform.com/WidgetsServer.js?v=1555534175523" type="text/javascript"></script>
- <script type="text/javascript">
- JotForm.init(function(){
- setTimeout(function() {
- $('input_11').hint('From');
- }, 20);
- setTimeout(function() {
- $('input_12').hint('To');
- }, 20);
- JotForm.calendarMonths = ["January","February","March","April","May","June","July","August","September","October","November","December"];
- JotForm.calendarDays = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"];
- JotForm.calendarOther = {"today":"Today"};
- var languageOptions = document.querySelectorAll('#langList li');
- for(var langIndex = 0; langIndex < languageOptions.length; langIndex++) {
- languageOptions[langIndex].on('click', function(e) { setTimeout(function(){ JotForm.setCalendar("5", false, {"days":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":true,"sunday":true},"future":true,"past":true,"custom":false,"ranges":false,"start":"","end":""}); }, 0); });
- }
- JotForm.setCalendar("5", false, {"days":{"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":true,"sunday":true},"future":true,"past":true,"custom":false,"ranges":false,"start":"","end":""});
- setTimeout(function() {
- $('input_8').hint('First Name');
- }, 20);
- setTimeout(function() {
- $('input_14').hint('Last Name');
- }, 20);
- setTimeout(function() {
- $('input_9').hint('Email');
- }, 20);
- setTimeout(function() {
- $('input_13').hint('Phone');
- }, 20);
- setTimeout(function() {
- $('input_15').hint('Additional Comments');
- }, 20);
- JotForm.alterTexts(undefined);
- JotForm.clearFieldOnHide="disable";
- JotForm.submitError="jumpToFirstError";
- /*INIT-END*/
- });
- JotForm.prepareCalculationsOnTheFly([null,{"name":"requestA","qid":"1","text":"Getting Ready To Move? Request A Free Estimate!","type":"control_head"},{"name":"submit2","qid":"2","text":"Submit","type":"control_button"},null,null,{"description":"","name":"movingDate","qid":"5","text":"Moving Date","type":"control_datetime"},{"description":"","name":"homeSize","qid":"6","subLabel":"","text":"Home Size","type":"control_dropdown"},null,{"description":"","name":"first_name8","qid":"8","subLabel":"","text":"First Name","type":"control_textbox"},{"description":"","name":"email","qid":"9","subLabel":"example@example.com","text":"Email","type":"control_email"},null,{"description":"","name":"from","qid":"11","subLabel":"","text":"From","type":"control_textbox"},{"description":"","name":"to","qid":"12","subLabel":"","text":"To","type":"control_textbox"},{"description":"","name":"phoneNumber13","qid":"13","subLabel":"","text":"Phone Number","type":"control_textbox"},{"description":"","name":"last_name14","qid":"14","subLabel":"","text":"Last Name","type":"control_textbox"},{"description":"","name":"additionalComments","qid":"15","subLabel":"","text":"Additional Comments","type":"control_textbox"},{"name":"typeA","qid":"16","text":"","type":"control_widget"}]);
- setTimeout(function() {
- JotForm.paymentExtrasOnTheFly([null,{"name":"requestA","qid":"1","text":"Getting Ready To Move? Request A Free Estimate!","type":"control_head"},{"name":"submit2","qid":"2","text":"Submit","type":"control_button"},null,null,{"description":"","name":"movingDate","qid":"5","text":"Moving Date","type":"control_datetime"},{"description":"","name":"homeSize","qid":"6","subLabel":"","text":"Home Size","type":"control_dropdown"},null,{"description":"","name":"first_name8","qid":"8","subLabel":"","text":"First Name","type":"control_textbox"},{"description":"","name":"email","qid":"9","subLabel":"example@example.com","text":"Email","type":"control_email"},null,{"description":"","name":"from","qid":"11","subLabel":"","text":"From","type":"control_textbox"},{"description":"","name":"to","qid":"12","subLabel":"","text":"To","type":"control_textbox"},{"description":"","name":"phoneNumber13","qid":"13","subLabel":"","text":"Phone Number","type":"control_textbox"},{"description":"","name":"last_name14","qid":"14","subLabel":"","text":"Last Name","type":"control_textbox"},{"description":"","name":"additionalComments","qid":"15","subLabel":"","text":"Additional Comments","type":"control_textbox"},{"name":"typeA","qid":"16","text":"","type":"control_widget"}]);}, 20);
- </script>
- <link href="https://cdn.jotfor.ms/static/formCss.css?3.3.10918" rel="stylesheet" type="text/css" />
- <link type="text/css" rel="stylesheet" href="https://cdn.jotfor.ms/css/styles/nova.css?3.3.10918" />
- <link type="text/css" media="print" rel="stylesheet" href="https://cdn.jotfor.ms/css/printForm.css?3.3.10918" />
- <link type="text/css" rel="stylesheet" href="https://cdn.jotfor.ms/themes/CSS/566a91c2977cdfcd478b4567.css?"/>
- <style type="text/css">
- .form-label-left{
- width:150px;
- }
- .form-line{
- padding-top:12px;
- padding-bottom:12px;
- }
- .form-label-right{
- width:150px;
- }
- .form-all{
- width:690px;
- color:#555 !important;
- font-family:"Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Verdana, sans-serif;
- font-size:14px;
- }
- </style>
- <style type="text/css" id="form-designer-style">
- /* Injected CSS Code */
- .form-label.form-label-auto { display: block; float: none; text-align: left; width: inherit; } /*__INSPECT_SEPERATOR__*/
- /* Injected CSS Code */
- </style>
- <form class="jotform-form" action="https://submit.jotform.us/submit/90655646535162/" method="post" name="form_90655646535162" id="90655646535162" accept-charset="utf-8">
- <input type="hidden" name="formID" value="90655646535162" />
- <div role="main" class="form-all">
- <ul class="form-section page-section">
- <li id="cid_1" class="form-input-wide" data-type="control_head">
- <div class="form-header-group ">
- <div class="header-text httal htvam">
- </div>
- </div>
- </li>
- <li class="form-line jf-required" data-type="control_textbox" id="id_11">
- <label class="form-label form-label-top form-label-auto" id="label_11" for="input_11">
- From
- <span class="form-required">
- *
- </span>
- </label>
- <div id="cid_11" class="form-input-wide jf-required">
- <input type="text" id="input_11" name="q11_from" data-type="input-textbox" class="form-textbox validate[required]" size="20" value="" placeholder="From" data-component="textbox" required="" />
- </div>
- </li>
- <li class="form-line jf-required" data-type="control_textbox" id="id_12">
- <label class="form-label form-label-top form-label-auto" id="label_12" for="input_12">
- To
- <span class="form-required">
- *
- </span>
- </label>
- <div id="cid_12" class="form-input-wide jf-required">
- <input type="text" id="input_12" name="q12_to" data-type="input-textbox" class="form-textbox validate[required]" size="20" value="" placeholder="To" data-component="textbox" required="" />
- </div>
- </li>
- <li class="form-line jf-required" data-type="control_datetime" id="id_5">
- <label class="form-label form-label-top form-label-auto" id="label_5" for="lite_mode_5">
- Moving Date
- <span class="form-required">
- *
- </span>
- </label>
- <div id="cid_5" class="form-input-wide jf-required">
- <div data-wrapper-react="true">
- <div style="display:none">
- <span class="form-sub-label-container" style="vertical-align:top">
- <input type="tel" class="form-textbox validate[required, limitDate]" id="month_5" name="q5_movingDate[month]" size="2" data-maxlength="2" value="" required="" />
- <span class="date-separate">
- -
- </span>
- <label class="form-sub-label" for="month_5" id="sublabel_month" style="min-height:13px"> Month </label>
- </span>
- <span class="form-sub-label-container" style="vertical-align:top">
- <input type="tel" class="form-textbox validate[required, limitDate]" id="day_5" name="q5_movingDate[day]" size="2" data-maxlength="2" value="" required="" />
- <span class="date-separate">
- -
- </span>
- <label class="form-sub-label" for="day_5" id="sublabel_day" style="min-height:13px"> Day </label>
- </span>
- <span class="form-sub-label-container" style="vertical-align:top">
- <input type="tel" class="form-textbox validate[required, limitDate]" id="year_5" name="q5_movingDate[year]" size="4" data-maxlength="4" value="" required="" />
- <label class="form-sub-label" for="year_5" id="sublabel_year" style="min-height:13px"> Year </label>
- </span>
- </div>
- <span class="form-sub-label-container" style="vertical-align:top">
- <input type="text" class="form-textbox validate[required, limitDate, validateLiteDate]" id="lite_mode_5" size="12" data-maxlength="12" data-age="" value="" required="" data-format="mmddyyyy" data-seperator="-" placeholder="mm-dd-yyyy" />
- <img alt="Pick a Date" id="input_5_pick" src="https://cdn.jotfor.ms/images/calendar.png" style="vertical-align:middle;margin-left:5px" data-component="datetime" />
- <label class="form-sub-label" for="lite_mode_5" id="sublabel_litemode" style="min-height:13px"> Date </label>
- </span>
- <span class="form-sub-label-container" style="vertical-align:top">
- <label class="form-sub-label" for="input_5_pick" style="border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap"> Date Picker Icon </label>
- </span>
- </div>
- </div>
- </li>
- <li class="form-line jf-required" data-type="control_dropdown" id="id_6">
- <label class="form-label form-label-top form-label-auto" id="label_6" for="input_6">
- Home Size
- <span class="form-required">
- *
- </span>
- </label>
- <div id="cid_6" class="form-input-wide jf-required">
- <select class="form-dropdown validate[required]" id="input_6" name="q6_homeSize" style="width:150px" data-component="dropdown" required="">
- <option value=""> Home Size </option>
- <option value="Studio "> Studio </option>
- <option value="1 Bedroom"> 1 Bedroom </option>
- <option value="2 Bedroom"> 2 Bedroom </option>
- <option value="3 Bedroom"> 3 Bedroom </option>
- <option value="4 Bedroom"> 4 Bedroom </option>
- <option value="5+ Bedroom"> 5+ Bedroom </option>
- </select>
- </div>
- </li>
- <li class="form-line jf-required" data-type="control_textbox" id="id_8">
- <label class="form-label form-label-top form-label-auto" id="label_8" for="input_8">
- First Name
- <span class="form-required">
- *
- </span>
- </label>
- <div id="cid_8" class="form-input-wide jf-required">
- <input type="text" id="input_8" name="q8_first_name8" data-type="input-textbox" class="form-textbox validate[required]" size="20" value="" placeholder="First Name" data-component="textbox" required="" />
- </div>
- </li>
- <li class="form-line jf-required" data-type="control_textbox" id="id_14">
- <label class="form-label form-label-top form-label-auto" id="label_14" for="input_14">
- Last Name
- <span class="form-required">
- *
- </span>
- </label>
- <div id="cid_14" class="form-input-wide jf-required">
- <input type="text" id="input_14" name="q14_last_name14" data-type="input-textbox" class="form-textbox validate[required]" size="20" value="" placeholder="Last Name" data-component="textbox" required="" />
- </div>
- </li>
- <li class="form-line jf-required" data-type="control_email" id="id_9">
- <label class="form-label form-label-top form-label-auto" id="label_9" for="input_9">
- Email
- <span class="form-required">
- *
- </span>
- </label>
- <div id="cid_9" class="form-input-wide jf-required">
- <span class="form-sub-label-container" style="vertical-align:top">
- <input type="email" id="input_9" name="q9_email" class="form-textbox validate[required, Email]" size="30" value="" placeholder="Email" data-component="email" required="" />
- <label class="form-sub-label" for="input_9" style="min-height:13px"> example@example.com </label>
- </span>
- </div>
- </li>
- <li class="form-line jf-required" data-type="control_textbox" id="id_13">
- <label class="form-label form-label-top form-label-auto" id="label_13" for="input_13">
- Phone Number
- <span class="form-required">
- *
- </span>
- </label>
- <div id="cid_13" class="form-input-wide jf-required">
- <input type="text" id="input_13" name="q13_phoneNumber13" data-type="input-textbox" class="form-textbox validate[required]" size="20" value="" placeholder="Phone" data-component="textbox" required="" />
- </div>
- </li>
- <li class="form-line" data-type="control_textbox" id="id_15">
- <label class="form-label form-label-top form-label-auto" id="label_15" for="input_15"> Additional Comments </label>
- <div id="cid_15" class="form-input-wide">
- <input type="text" id="input_15" name="q15_additionalComments" data-type="input-textbox" class="form-textbox" size="20" value="" placeholder="Additional Comments" data-component="textbox" />
- </div>
- </li>
- <li class="form-line" data-type="control_widget" id="id_16">
- <div id="cid_16" class="">
- <div style="width:100%;text-align:Left" data-component="widget-directEmbed">
- <div class="direct-embed-widgets " data-type="direct-embed" style="width:50px;height:50px">
- <div class="google_analytics_widget">
- <script>
- var analyticsFormId = '{analyticsFormId}';
- var analyticsAutoLink = 'www.menonthemove.com\nsubmit.jotform.us';
- (function(i, s, o, g, r, a, m)
- {
- i['GoogleAnalyticsObject'] = r;
- i[r] = i[r] ||
- function()
- {
- (i[r].q = i[r].q || []).push(arguments)
- }, i[r].l = 1 * new Date();
- a = s.createElement(o), m = s.getElementsByTagName(o)[0];
- a.async = 1;
- a.src = g;
- m.parentNode.insertBefore(a, m)
- })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
- ga('create', 'UA-65358234-4', 'auto', {
- 'allowLinker': true
- });
- ga('send', 'pageview');
- if (window.analyticsAutoLink && analyticsAutoLink != '<empty>')
- {
- analyticsAutoLink = analyticsAutoLink.replace(/ /g, '').split(/[,\n]/g);
- ga('require', 'linker');
- ga('linker:autoLink', analyticsAutoLink);
- }
- </script>
- <script src="//widgets.jotform.io/googleanalytics/scripts.js" type="text/javascript"></script>
- </div>
- </div>
- </div>
- </div>
- </li>
- <li class="form-line" data-type="control_button" id="id_2">
- <div id="cid_2" class="form-input-wide">
- <div style="margin-left:156px" class="form-buttons-wrapper">
- <button id="input_2" type="submit" class="form-submit-button" data-component="button">
- Submit
- </button>
- </div>
- </div>
- </li>
- <li style="display:none">
- Should be Empty:
- <input type="text" name="website" value="" />
- </li>
- </ul>
- </div>
- <script>
- JotForm.showJotFormPowered = "old_footer";
- </script>
- <input type="hidden" id="simple_spc" name="simple_spc" value="90655646535162" />
- <script type="text/javascript">
- document.getElementById("si" + "mple" + "_spc").value = "90655646535162-90655646535162";
- </script>
- <script src="https://cdn.jotfor.ms/js/widgetResizer.js?REV=3.3.10918" type="text/javascript"></script>
- </form>
- <script type="text/javascript">JotForm.ownerView=true;</script>
- <!-- Custom Code written by Mission Disrupt -->
- <!-- Feel free to edit style and script tags -->
- <style>
- .jotform-form {
- padding: 0 !important;
- transition: opacity .33s ease;
- }
- .jotform-form.ready-to-show {
- opacity: 1 !important;
- }
- h2.form-header {
- color: white !important;
- text-transform: uppercase;
- }
- h2.form-header span {
- color: #f1c904 !important;
- font-style: italic;
- }
- .form-header-group {
- margin-left: 10px;
- margin-right: 10px;
- margin-top: 0;
- padding-top: 4px;
- }
- .form-all {
- width: auto;
- }
- .form-section {
- display: flex;
- flex-wrap: wrap;
- align-items: flex-start;
- }
- .form-input-wide {
- width: 100% !important;
- }
- #cid_5 {
- position: relative;
- height: 39px;
- }
- #cid_11:before,
- #cid_12:before,
- #cid_5 .form-sub-label-container:before,
- .select-wrap:before,
- #cid_8:before,
- #cid_9:before,
- #cid_13:before,
- #cid_14:before,
- #cid_15:before {
- content: '\f3c5';
- display: inline-block;
- font-family: 'Font Awesome 5 Free';
- font-weight: 900;
- position: absolute;
- font-size: 15px;
- top: 18px;
- left: 25px;
- /*transform: translateY(-50%);*/
- }
- #cid_5 .form-sub-label-container:before {
- content: '\f073';
- left: 12px;
- top: 6px;
- }
- .select-wrap:before {
- content: '\f337';
- left: 12px;
- top: 6px;
- }
- #cid_8:before,
- #cid_14:before {
- content: '\f007';
- }
- #cid_9:before {
- content: '\f0e0';
- }
- #cid_13:before {
- content: '\f095';
- }
- #cid_15:before {
- content: '\f086';
- }
- #cid_5 #input_5_pick {
- position: absolute;
- top: 50%;
- left: 5px;
- transform: translateY(-50%);
- opacity: 0;
- }
- #cid_5 #sublabel_litemode,
- label[for="input_5_pick"] {
- display: none;
- }
- .form-section > li {
- width: 100%;
- max-width: 25%;
- }
- .form-section > li#id_15 {
- max-width: 75%;
- }
- @media (max-width: 970px) {
- .form-section > li,
- .form-section > li#id_15 {
- max-width: 50%;
- }
- }
- @media (max-width: 550px) {
- .form-section > li,
- .form-section > li#id_15 {
- max-width: 100%;
- }
- }
- .form-section > li[data-type="control_head"] {
- max-width: none;
- }
- .form-section > li .form-label-top {
- display: none;
- }
- .form-all {
- background: transparent;
- }
- .form-textbox, .form-textarea,
- .form-radio-other-input,
- .form-checkbox-other-input,
- .form-captcha input {
- border: 2px solid black;
- padding: 8px 16px;
- padding-left: 30px;
- border-radius: 55px;
- width: 100%;
- box-sizing: border-box;
- }
- #input_10_phone {
- padding-left: 16px;
- }
- .form-textbox, .form-textarea::-webkit-input-placeholder,
- .form-radio-other-input::-webkit-input-placeholder,
- .form-checkbox-other-input::-webkit-input-placeholder,
- .form-captcha input::-webkit-input-placeholder {
- text-align: center;
- font-weight: bold;
- }
- .form-textbox, .form-textarea::-moz-placeholder,
- .form-radio-other-input::-moz-placeholder,
- .form-checkbox-other-input::-moz-placeholder,
- .form-captcha input::-moz-placeholder {
- text-align: center;
- font-weight: bold;
- }
- .form-textbox, .form-textarea:-ms-input-placeholder,
- .form-radio-other-input:-ms-input-placeholder,
- .form-checkbox-other-input:-ms-input-placeholder,
- .form-captcha input:-ms-input-placeholder {
- text-align: center;
- font-weight: bold;
- }
- .form-textbox, .form-textarea:-moz-placeholder,
- .form-radio-other-input:-moz-placeholder,
- .form-checkbox-other-input:-moz-placeholder,
- .form-captcha input:-moz-placeholder {
- text-align: center;
- font-weight: bold;
- }
- .form-dropdown {
- float: right;
- width: calc(100% - 50px) !important;
- border: none;
- text-align-last:center;
- margin-right: 15px;
- color: #757575;
- font-weight: bold;
- font-size: 1em;
- line-height: 1.071em;
- }
- .form-dropdown {
- height: 35px;
- }
- .form-sub-label-container {
- width: 100%;
- }
- .form-sub-label {
- display: none;
- }
- .form-line {
- padding: 12px 10px;
- overflow: hidden;
- }
- .form-buttons-wrapper {
- margin: 0 !important;
- }
- .form-all .form-submit-button {
- margin: 0;
- width: 100%;
- border-radius: 55px;
- border: 2px solid #f1c904;
- background: #f1c904;
- color: #0943a1;
- text-transform: uppercase;
- text-shadow: none;
- box-shadow: none;
- font-weight: bold !important;
- padding-top: 3px;
- padding-bottom: 3px;
- }
- .form-submit-button:hover {
- background: #d8b300;
- border-color: #d8b300;
- }
- .jf-branding {
- display: none !important;
- }
- .form-line.form-line-active,
- .form-line.form-line-error {
- background: transparent;
- }
- .select-wrap {
- border-radius: 55px;
- border: 1px solid black;
- overflow: hidden;
- position: relative;
- margin-top: 2px;
- background: white;
- }
- .select-wrap:after {
- content: '';
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- border-radius: 55px;
- border: 1px solid black;
- pointer-events: none;
- }
- .select-wrap select {
- background: white;
- border-radius: 55px;
- background: white;
- }
- .address-error {
- background: #ff3200;
- color: white;
- border-radius: 4px;
- font-size: 12px;
- margin: 3px auto 0;
- padding: 4px;
- font-style: italic;
- width: calc(100% - 36px);
- }
- </style>
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAenBiOD-fEz5z8xwONEoQbsck5pQMZNAQ&libraries=places"></script>
- <script>
- // It is important that jQuery is in noconflict mode as
- // it inteferes with JotForm calendar dropdown
- jQuery.noConflict();
- jQuery(document).ready(function(){
- initialize();
- });
- function initialize(){
- var options = {
- types: ['address'],
- componentRestrictions: {
- country: 'us'
- }
- };
- autocomplete_textarea_1 = new google.maps.places.Autocomplete((document.getElementById('input_11')),
- { types: ['geocode'] }
- );
- google.maps.event.addListener(autocomplete_textarea_1, 'place_changed', function() {
- fillInAddress_textarea_1();
- });
- autocomplete_textarea_2 = new google.maps.places.Autocomplete((document.getElementById('input_12')),
- { types: ['geocode'] }
- );
- google.maps.event.addListener(autocomplete_textarea_2, 'place_changed', function() {
- fillInAddress_textarea_2();
- });
- }
- function fillInAddress(){
- var place = autocomplete.getPlace();
- console.log( JSON.stringify(place) );
- for (var component in componentForm) {
- document.getElementById(component).value = '';
- document.getElementById(component).disabled = false;
- }
- for (var i = 0; i < place.address_components.length; i++) {
- var addressType = place.address_components[i].types[0];
- if (componentForm[addressType]) {
- var val = place.address_components[i][componentForm[addressType]];
- document.getElementById(addressType).value = val;
- }
- }
- }
- function fillInAddress_textarea_1(){
- var place1 = autocomplete_textarea_1.getPlace();
- jQuery('#autocomplete_textarea').val(place1.formatted_address);
- jQuery('#input_11').val(place1.formatted_address);
- }
- function fillInAddress_textarea_2(){
- var place2 = autocomplete_textarea_2.getPlace();
- jQuery('#autocomplete_textarea').val(place2.formatted_address);
- jQuery('#input_12').val(place2.formatted_address);
- }
- // Generate a random string
- function makeid(length) {
- var text = '';
- var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
- for (var i = 0; i < length; i++)
- text += possible.charAt(Math.floor(Math.random() * possible.length));
- return text;
- }
- // Check if address is valid based on the ', USA' at the end
- function checkAddressValid(el){
- jQuery('.jotform-form').on('focusout', el,function(){
- setTimeout(function(){
- var address_from = jQuery(el).val();
- if(address_from.includes(', USA')){
- jQuery(el).siblings('.address-error').remove();
- } else {
- jQuery(el).val('');
- showAddressError(el);
- }
- }, 200);
- });
- }
- // Apply function to To and From
- checkAddressValid('#input_11');
- checkAddressValid('#input_12');
- // Show error if ', USA' is not present in address
- function showAddressError(el){
- jQuery(el).siblings('.address-error').remove();
- var uniqueId = makeid(9);
- jQuery(el).after('<p id="' + uniqueId + '" class="address-error">Please select an address from the dropdown menu.</p>');
- setTimeout(function(){
- jQuery('#' + uniqueId).fadeOut('slow', function(){
- jQuery(this).remove();
- });
- }, 5000);
- }
- // The code below inserts placeholder
- // text into fields
- jQuery.noConflict();
- jQuery(document).ready(function(){
- jQuery('.form-dropdown').wrap('<div class="select-wrap"></div>');
- jQuery('#cid_5 .form-textbox').attr('placeholder', 'Date');
- jQuery('#cid_5 .form-textbox').click(function(){
- jQuery('#input_5_pick').trigger('click');
- });
- jQuery('.jotform-form').css('opacity', '1');
- jQuery('.jotform-form').addClass('ready-to-show');
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement