Jquery and $$
-
I’m moving some code over to a plugin.
The code uses jquery and has these lines in it:
var hd = $$('day_header_'+idx); var bd = $$('day_body_'+idx); var toret = ''; if(hd) toret += hd.innerHTML; if(bd) { if(toret) toret += '<br>'; toret += bd.innerHTML; }
So basically it gets the values from the specified day_header and day_body items and combines them for display in a hover box.
When I try this in WordPress (I’ve enqueued all the code with JQuerty as a prereq) I get the error
Uncaught ReferenceError: $$ is not defined
Have I missed something when I’ve been cutting the code over or does WP Jquery not use $$
I’m on WordPress 5.7.2
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Jquery and $$’ is closed to new replies.