Send HTML code in new plugin
Hi all,
I test to creat a plugin 'infobulle' for my website, but when I want send HTML code (infobulle content), I never receive this...
This is my HTML code :
-
<div class="K_infobulle">
<span class='K_infobulle_content' style='display:none;'>
<span class="bold">Lorem ipsum dolor sit amet</span><br/><br/>
<span class="underline">Lorem ipsum dolor sit amet</span><br/><br/>
<span class="italic">Lorem ipsum dolor sit amet</span><br/><br/>
<span class="crossed">Lorem ipsum dolor sit amet</span><br/><br/>
<span class="overline">Lorem ipsum dolor sit amet</span><br/><br/>
</span>
</div>
This is my jQuery code :
-
$('.K_infobulle').infobulle(
{
content : $(this).children('.K_infobulle_content')
});
And this is my jQuery plugin :
-
$.fn.infobulle = function(options)
{
options = arrayMerge(
{
"content" : false
},options);
this.mouseenter(function()
{
alert(options.content.html());
});
};
But I have just alert with writing 'null' ..
Somebody can help me
Thank you all
EDIT : I have resolve the forget problème of 'K_' in each class.