Hi,
The site is not up yet.
The custom field css class is place_has, which then becomes .gd-field-geodir_Place_has by the plugin.
This piece of code shows the custom fields only when the category with value “18” is selected from the dropdown and hides it otherwise.
jQuery(document).ready(function( $ ){
$(‘.geodir-filter-cat.gd-type-single.gd-field-geodir_Place_has’).hide();
$(‘.cat_select’).change(function(){
if($(‘.cat_select’).val() == ’18’) {
$(‘.geodir-filter-cat.gd-type-single.gd-field-geodir_Place_has’).show();
} else {
$(‘.geodir-filter-cat.gd-type-single.gd-field-geodir_Place_has’).hide();
}
});
});
And since i will add more custom fields for each category, i will use “else if” to add more conditions.