Created
January 18, 2011 22:30
-
-
Save rynop/785293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('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