Hello! I wanted to write my first jquery code and failed to replace all these markups with a simple jquery command attaching this function - return hs.htmlExpand(this, { objectType: 'iframe' } ) - to all markups automatically:
e.g.: <a href="abc.html" onclick="return hs.htmlExpand(this, { objectType: 'iframe' } )"></a> What am I doing wrong here?: (placed in head section) <script type="text/javascript"> $("a").click(function(event){ event.preventDefault(); return hs.htmlExpand(this, { objectType: 'iframe' } ) }); </script> Thank you!!