Copy link to clipboard
Copied
Hi Guys
Fo some reason it seems like the included jQuery script that comes with BC gives me errors when I try to create a simple DOM change.
I get this error:
TypeError: 'undefined' is not a function...
When I add a CDN link to the latest jQuery from Google then my script works fine but all other BC specific modules (such as the menu) get stuffed...
See sample page where I am trying to add a simple background color where the word "Outdoors" appears in a span.
$("span:contains('Outdoors')").css('background','red');
http://stsstone.businesscatalyst.com/sample-page-1
Cheers
Micha
1 Correct answer
Thanks
I found out that any new jquery scripts would give me some error. This is due to the embedded jquery script in the BC template. Once a removed BC scripts and added my own jquery or a CDN link all worked well.
Cheers
Micha
Copy link to clipboard
Copied
Hello Micha,
Your example link goes to a 404 page. Have you resolved this issue?
Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7
Copy link to clipboard
Copied
Thanks
I found out that any new jquery scripts would give me some error. This is due to the embedded jquery script in the BC template. Once a removed BC scripts and added my own jquery or a CDN link all worked well.
Cheers
Micha
