To use iFrame Resizer on specific iFrames, I entered the following selector:

$(".todolist")

I also tried this:

(function ($) { $(".todolist") })(jQuery);

However, I always get "Uncaught Error: Syntax error, unrecognized expression: $(".todolist")" in the console.

What am I doing wrong?

Comments

fatmarker created an issue. See original summary.

milodesc’s picture

Hey fatmarker,

Can you try just adding the following:
.todolist

without all of the other code?

markdc’s picture

Aw man, I feel so stupid for not trying that, but it is only because I put my explicit trust in the field label which says:

"Specify the iFrames which should be targeted by the iFrame Resizer library by supplying jQuery selectors,"

and the help text:

"Use one or more jQuery selectors (one per line) to specify which hosted iFrames should be targeted by the iFrame Resizer library."

For people like me who takes things too literally, I would suggest clarifying those to say "element class or ID selector" — just leave out "jQuery".

milodesc’s picture

Status: Active » Fixed

I've added a couple of examples to the form item's description text.

markdc’s picture

Thanks for making it dummy-proof. xD

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.