Toggle a property of a breadcrumb navigation from "true" to "false"

Posted on 2012-08-27
Last Modified: 2012-08-28
How do I toggle the data-disabled property of the following breadcrumb navigation from "true" to "false":

<ul class="breadcrumb" 
        <li><a href="#">Section1</a></li>
        <li><a href="#">Section2</a></li>
        <li><a href="#">Section3</a></li>
    <div id="rfrcontent">
        <div id="rfrsection1">    
                <?php include "Section1.php";?>  
        <div id="rfrsection2">    
			    <?php include "Section2.php";?>  
        <div id="rfrsection3">    
			    <?php include "Section3.php";?>  

Open in new window

Basically what I would like to do is that in response to some other event, I would like to change the data-disabled property from "true" to "false", thereby enabling the breadcrumb navigation.  How would I do that?  Thanks.
Question by:DanielAttard
    LVL 42

    Accepted Solution

    Something like this would do it:

    $('#rfrbc').attr('data-disabled', 'false');

    Author Closing Comment

    Thanks Chris.  It looks so simple once I see it written down for me.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now