Hey Sir. Thanks for your explanation. Would you PLEASE clarify why it’s working just fine with the same function when you press the BOOK NOW in the tops menu?
What you just said just don’t make sense considering I haven’t done anything you suggested but just using the given script - This script was given to me a long time ago from another X Team Support.
Let me clarify again what we are trying to archive!
For each option from the menu (Select your Service) I am looking for to call a different (Global Block with a different ID). It’s the same idea as in the top menu but different option!
I thought if I just add another function anchor in another ID would be enough like:
jQuery(function($){
$( document).on(‘click’, ‘#menu-item-119 > a’, function(e) {
e.preventDefault();
$(’#bookNOW-anchor-toggle’).click();
});
$( document).on(‘click’, ‘#menu-item-1148 > a’, function(e) {
e.preventDefault();
$(’#bookSheetrock-anchor-toggle’).click();
});
});
URL: www.southlandservices.net/sand-box/
#One more thing is calling my attention#
I have two Global Block #1 ID="bookNOW #2 ID=“bookSheetrock”
The weird part is - just by switch ID’s the bookNOW stop working like below!
jQuery(function($){
$( document).on(‘click’, ‘#menu-item-119 > a’, function(e) {
e.preventDefault();
$(’#bookSheetrock-anchor-toggle’).click();
});
$( document).on(‘click’, ‘#menu-item-1148 > a’, function(e) {
e.preventDefault();
$(’#bookNOW-anchor-toggle’).click();
});
});