Skip to content

Instantly share code, notes, and snippets.

@rynop
Created January 18, 2011 22:30
Show Gist options
  • Save rynop/785293 to your computer and use it in GitHub Desktop.
Save rynop/785293 to your computer and use it in GitHub Desktop.
$('a.addTarget').each(function(){
$(this).qtip(
{
content: {
text: $("#ctoPop")
},
position: {
my: 'left top',
at: 'right top',
adjust: { screen: true }
},
show: {
event: 'click',
solo: true
},
hide: {
event: 'unfocus'
},
style: {
classes: 'ui-tooltip-shadow ui-tooltip-light',
tip: {
corner: 'left top',
mimic: 'left center',
height: 30,
width: 12
}
}
})
.click(function(e) {
e.preventDefault();
});
});
And the DIV:
<div id="ctoPop" style="display:none">
<input type="text" id="ClickAction0Title" name="data[ClickAction][0][title]">
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment