Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2012-08-27
Medium Priority
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 45

Accepted Solution

Chris Stanyon earned 2000 total points
ID: 38340419
Something like this would do it:

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

Author Closing Comment

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
Suggested Courses

581 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