events_forms_template_new.html 1014 B

1234567891011121314151617181920212223242526272829303132
  1. <form id="ff">
  2. <{foreach from=$forms item=form}>
  3. <{if $form.type == 'text'}>
  4. <input name="<{$form.name}>" type="text" class="input_style" placeholder="<{$form.name}>" >
  5. <{/if}>
  6. <{if $form.type == 'textarea'}>
  7. <textarea name="<{$form.name}>" class="input_textarea" placeholder="<{$form.name}>"></textarea>
  8. <{/if}>
  9. <{if $form.type == 'select'}>
  10. <select name="<{$form.name}>" class="dropdown-select">
  11. <option value="">请选择<{$form.name}></option>
  12. <{foreach from=$form.options item=option}>
  13. <option value="<{$option}>"><{$option}></option>
  14. <{/foreach}>
  15. </select>
  16. <{/if}>
  17. <{/foreach}>
  18. </form>
  19. <section class="button-wrapper">
  20. <a class="button" id="common_submit_btn">提交资料</a>
  21. </section>
  22. <script>
  23. $("select").on('change', function () {
  24. if ($(this).val() == '') {
  25. $(this).css({'color':'#999'});
  26. } else {
  27. $(this).css({'color':''});
  28. }
  29. });
  30. </script>