Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. function enableAgeQuestion(title) {
  2. const question = path => {
  3. return `<fieldset class="card" id="age-verification-${path}-vwo">
  4. <div class="inner-container">
  5. <p class="question-label">Follow Up Question</p>
  6. <h4 class="question">${title || 'How old are you?'}</h4>
  7. <div class="button-list vertical-list">
  8. <select name="age" class="input" id="age${path === 'refinance' ? '' : '-p'}">
  9. <option selected disabled value="">Choose One:</option>
  10. <option value="20">18-25</option>
  11. <option value="30">26-35</option>
  12. <option value="40">36-45</option>
  13. <option value="50">46-55</option>
  14. <option value="60">56-61</option>
  15. <option value="62">62 or older</option>
  16. </select>
  17. </div>
  18. <div class="next-button-container">
  19. <button type="button" class="btn-primary next-button">
  20. <p>Next</p>
  21. <div class="icon-container"><span class="icon-next-arrow"></span></div>
  22. </button>
  23. <br>
  24. <button type="button" class="back-button">Back</button>
  25. </div>
  26. </div>
  27. </fieldset>
  28. `
  29. }
  30.  
  31. $('#employment-step-refinance').before(question('refinance'))
  32. $('#employment-step-purchase').before(question('purchase'))
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement