I have 2 different links with inline js added.
I would like to add both to a single inline onclick.
Here are the two separate one:
<a href="#" onclick=\'$("#id").toggle();\'>
<a href="#" onclick="myvar = '1';">
And this is what I would like to do:
<a href="#" onclick="$("#id").toggle();myvar = '1';">
How could I do this?
Exactly like you have, but with syntax errors fixed…
Incidentally, be ready for a slew of people telling you not to use inline code.