jquery and highslide
I use this js http://highslide.com. I have a separate div and i want open the highslide with this div with onclick e开发者_StackOverflow社区vent.. I have try this but not work..
$('#po').click(function(){
var s = $('#ap_1');
return hs.expand(s, config1);
});
#ap_1
is the first a tag element ...
I think hs.expand
takes a DOM element; try using hs.expand(s.get(0), config1);
.
Try this
$('a.highslide').click(function() {
return hs.expand(this, options);
});
精彩评论