JavaScript/jQuery toggle not working
-
Hi all,
I’m hoping someone can give me advice on this. I have a JavaScript function that used to work, and now it doesn’t. On this page: http://www.nfe-lifts.com/inventory/ when you check “Advanced Search”, a hidden div is supposed to show.
Here is the function:
$('#advanced-options').on('change', function() { $.cookie('advanced-search', $(this).is(':checked')?'1':'0'); if($(this).is(':checked')) { $('#advanced-div').show(); } else { $('#advanced-div').hide('slow'); } if($.cookie('advanced-search') == '1') { $('#advanced-options').prop('checked', true).trigger('change'); } });
I’m on WP Engine and recently learned that they block certain cookies. They assured me that’s not what’s happening here. I’m not sure why this isn’t working. Any help would be appreciated.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘JavaScript/jQuery toggle not working’ is closed to new replies.