I’m using fancybox 2 to open an iframe that displays some inputs as checkbox like:
<input type="checkbox" id="contact" name="sector" value="cellular">
now I want that when the user clicks on the fancybox title a parent function will be called with the all checkbox values.
this is my fancybox title:
'<li onclick="parent.sendIframeDataToParent(document.getElementByType("checkbox"), "sector_hook");">Submit</li>'
and I’m getting this error: Uncaught SyntaxError: Unexpected token }
What am I missing?
The
"in your JavaScript terminates the HTML attribute you delimit with". Giving you:When you have
"as data in an attribute value delimited with", represent them as".