Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function ($) {
- $.fn.toolTip = function (type) {
- var $t, init, show, hide;
- init = function () {
- /** HERE I WANT TO KNOW THE ORIGINAL SELECTOR (.wizard .info) **/
- $t = $('<div class="toolTip"><div></div></div>')
- $("body").append($t);
- };
- show = function (ui) {
- return false;
- };
- hide = function () {
- return false;
- };
- init();
- return this.each(function () {
- $(this).bind("mouseover", function(){show($this);})
- .bind("mouseout", function(){hide($this);});
- });
- };
- })(jQuery);
- /** I call it like; **/
- $(".wizard .info").toolTip()
Add Comment
Please, Sign In to add comment