123456789101112131415161718192021222324252627282930313233 |
- <div class="join_submit_box">
- <form id="ff">
- <{foreach from=$forms item=form}>
- <{if $form.type == 'text'}>
- <div class="submit_cell"><input name="<{$form.name}>" type="text" class="input_style" placeholder="<{$form.name}>" ></div>
- <{/if}>
- <{if $form.type == 'textarea'}>
- <div class="submit_cell submit_cell_area"><p><textarea name="<{$form.name}>" class="input_textarea" placeholder="<{$form.name}>"></textarea></p></div>
- <{/if}>
- <{if $form.type == 'select'}>
- <select name="<{$form.name}>" class="dropdown-select">
- <option value="">请选择<{$form.name}></option>
- <{foreach from=$form.options item=option}>
- <option value="<{$option}>"><{$option}></option>
- <{/foreach}>
- </select>
- <{/if}>
- <{/foreach}>
- <section class="button-wrapper">
- <a class="button" id="common_submit_btn">提交资料</a>
- </section>
- </form>
- </div>
- <script>
- $("select").on('change', function () {
- if ($(this).val() == '') {
- $(this).css({'color':'#999'});
- } else {
- $(this).css({'color':''});
- }
- });
- </script>
|