How do I open an x-editable popup on hover?

Is there a way to open an x-editable popup when the mouse is in the text without clicking?

For example: http://jsfiddle.net/xBB5x/63/

I can edit the names, but I need to click on the link to do so. I would like the popup to be displayed when the mouse is over.

Something like: <a href ="" onmouseover="openPopup()" onmouseout="closePopup()">abc</a>

And, if possible, I would like one specific popup to appear when the mouse is over and another when the user clicks on a link.

As an example, we'll be grateful.

+3


source to share


1 answer


try it

$("a").mouseover(function() {
//console.log($(this).html());
 $(this).click();   
});

      



or use the toggle option

$('#users a').editable({
    type: 'text',
    name: 'username',
    url: '/post',
    title: 'Enter username',
    toggle:'mouseenter'
});

      

+1


source







All Articles