Файловый менеджер - Редактировать - /home/amitahospital/public_html/amita_master/upload/news/conditional.js.tar
Назад
home/amitahospital/public_html/amita_master/js/conditional.js 0000644 00000003055 14721155775 0020601 0 ustar 00 //Copyright 2015 Pareto Software, LLC, released under an MIT license: http://opensource.org/licenses/MIT $( document ).ready(function() { var testimonial_ok=false; //Inputs that determine what fields to show var rating = $('#live_form input:radio[name=rating]'); var testimonial=$('#live_form input:radio[name=testimonial]'); //Wrappers for all fields var bad = $('#live_form input[id="feedback_bad"]').parent(); var ok = $('#live_form input[id="feedback_ok"]').parent(); var great = $('#live_form input[id="feedback_great"]').parent(); var testimonial_parent = $('#live_form #div_testimonial'); var thanks_anyway = $('#live_form #thanks_anyway'); var all=bad.add(ok).add(great).add(testimonial_parent).add(thanks_anyway); rating.change(function(){ var value=this.value; all.addClass('hidden'); //hide everything and reveal as needed if (value == 'Bad' || value == 'Fair'){ bad.removeClass('hidden'); } else if (value == 'Good' || value == 'Very Good'){ ok.removeClass('hidden'); } else if (value == 'Excellent'){ testimonial_parent.removeClass('hidden'); if (testimonial_ok == 'yes'){great.removeClass('hidden');} else if (testimonial_ok == 'no'){thanks_anyway.removeClass('hidden');} } }); testimonial.change(function(){ all.addClass('hidden'); testimonial_parent.removeClass('hidden'); testimonial_ok=this.value; if (testimonial_ok == 'yes'){ great.removeClass('hidden'); } else{ thanks_anyway.removeClass('hidden'); } }); });
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0.06 |
proxy
|
phpinfo
|
Настройка