Thanks, but it still doesn't work...
On May 16, 6:06 pm, Wizzud <[EMAIL PROTECTED]> wrote: > You need to enclose the jQuery code inside Document Ready > ...http://docs.jquery.com/Tutorials:How_jQuery_Works#Launching_Code_on_D... > > On May 16, 5:17 pm, lukas <[EMAIL PROTECTED]> wrote: > > > > > 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!!- Hide quoted text - > > - Show quoted text -