Coder Social home page Coder Social logo

Turning off tool tips... about jwizard HOT 8 CLOSED

cpsrac avatar cpsrac commented on July 30, 2024
Turning off tool tips...

from jwizard.

Comments (8)

choi830 avatar choi830 commented on July 30, 2024

The tool tip is caused by the "title" attribute\ in the fieldset tags. The Jwizard js file adds them to the fieldset tages. Just use Jquery to remove the "title attribute"

from jwizard.

cpsrac avatar cpsrac commented on July 30, 2024

Thanks cgoi830,

I did as you suggested, it did remove the tooltips, but it also removed the title at the top of the Wizard page. The way I have setup the wizard I'm using the title at the top of the page, which uses the fieldset tag. I just want to kill the tooltips.

Maybe change the opacity for just the mouse over the fieldset area, which is what I'm trying to remove without destroying the title at the top of the wizard.

I have searched high and low on the web but still no luck. Any other suggestions would be very welcomed.

from jwizard.

aliuk2012 avatar aliuk2012 commented on July 30, 2024

Hi, Having had a look at the ourse Ithink it would be good to provide the developer a choice of tags to use perhap a data attribute? Something like data-jwizard-title="title1" and then instead of picking up .attr('title') .data('jwizard-title') could be used. I'm happy to knock up an example or a patch for the repo.

from jwizard.

dominicbarnes avatar dominicbarnes commented on July 30, 2024

As of the latest release, you can use data-title in place of title. (title will be checked for first, so it will take priority)

from jwizard.

aliuk2012 avatar aliuk2012 commented on July 30, 2024

Dominic I still think you should go with data-jwizard-title, the reason is that there less chance of there being another plugin or even the developer having another data-title on their page which would clash with jWizards one. Maybe not directly with jWizard but perhaps from their side.

from jwizard.

dominicbarnes avatar dominicbarnes commented on July 30, 2024

Fair enough, I will include this change as part of the next release.

from jwizard.

cpsrac avatar cpsrac commented on July 30, 2024

Here is a sniplet of the code I used to hide tool tips. It works great but I'm sure there is a better method.

    //------Hide Title of fieldsets
     var tempTitle = "";
     $('fieldset[title]').hover(
        function(e){
             e.preventDefault();
             tempTitle = $(this).attr('title');

             $(this).attr('title', '');
        }
       ,
       function() {
           $(this).attr('title', tempTitle);
       }
     );

    //------Hides titles of additional tags I created within a fieldset
    var tempTitle2 = "";
    $('h2.sliderLabel[title], div.infoHelpButton[title], div p.infoTxt[title]').hover( 
        function(e){
             e.preventDefault();
             tempTitle2 = $(this).attr('title');

             $(this).attr('title', '');
        }
       ,
       function() {
           $(this).attr('title', tempTitle2);
       }
    );

from jwizard.

dominicbarnes avatar dominicbarnes commented on July 30, 2024

The data-jwizard-title attribute is now in place.

from jwizard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.