Closed himedlooff closed 10 years ago
I'm pretty sure it's because the input split jQuery plugin options are trying to call split()
on non-existent elements.
Yeah, your diagnosis is correct. How can we isolate this script to just the pages with these split input elements?
a simple fix might be to something like:
if ($('#split-elem').length > 0) {
// do plugin thing
}
Thanks @ascott1! I gave it a try and it's working great. :boom:
:dancers:
URL
Any post page like /blog/spring-2014-rulemaking-agenda.
Actual Behavior
I am getting the following JS error.
Open a post page in Chrome and open up the console.
Screenshot