My code:
<a href="#" onclick="$('#s input[name='reset']').click(); return false;">RESET</a>
Apparently as you can see I can’t use ' nor " at the part [name= as either one will end the previous quotation mark of the same type.
Need some help. One way would be to define a function and have onclick trigger the function, but I’m hoping to get the code (it’s just 1 line) assigned to onclick.
Well, you could use escaped
\'or\"but the best solution at all is just not to use those inline event handlers.Obviously, this would affect all anchors. So a class or an ID would be advisable.