+ <td>
+ {valid_date name="survey_question[end]" value=$survey_current.end to=90}
+ <script type="text/javascript">//<![CDATA[
+ {literal}
+ $(document).ready(function() {
+ function hidePromo(value) {
+ if (value == "0" || value == "") {
+ $("#ln_promo").hide();
+ $("#ln_promo_exp").hide();
+ } else {
+ $("#ln_promo").show();
+ $("#ln_promo_exp").show();
+ }
+ }
+ $("[name='survey_question[mode]']").change(function() { hidePromo(this.value); });
+ hidePromo({/literal}"{$survey_current.mode}"{literal});
+ });
+ {/literal}
+ //]]></script>
+ </td>