Skip to content

Attach JBox tooltip to disabled button #214

@JayH77

Description

@JayH77

Is is possible to attach a jbox tooltip to a disabled button? I'd like to inform the user the reasons the button is disabled using a tooltip.

I've disabled the button like so:

$('.btn-print').attr('disabled', true);

(Have also tried $('.btn-print').prop('disabled', true); )

And attaching the tooltip as:

new jBox('Tooltip', {
attach: '.btn-print'
});

Obviously if I hover of the button, the cursor changes to not allow but the jbox doesn't appear. If I comment out the disable, it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions