Collapsed and lock field | WordPress.org

[ad_1]

Hello to the best WP-Plugin!

When the choice in fieldname82 is changing, i want the collapsable container 171 to be collapsed and locked:

jQuery(document).on(‘change’, ‘[id*=”fieldname82_”]’, function(){ COLLAPSEFIELD(‘fieldname171’); DISABLEFIELD(‘fieldname171’);

Also tried:

jQuery(document).on(‘change’, ‘#fieldname82’, function(){ jQuery(‘#fieldname171’).prop(‘disabled’, true).hide(); });

Nothing works, any suggestions?

Thank you!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer