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

x
?
Solved

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

Posted on 2012-08-27
2
Medium Priority
?
471 Views
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" 
    	id="rfrbc"
        data-numbers="true" 
        data-connect="rfrcontent"
        data-disabled="true">
        <li><a href="#">Section1</a></li>
        <li><a href="#">Section2</a></li>
        <li><a href="#">Section3</a></li>
    </ul>
    <div id="rfrcontent">
        <div id="rfrsection1">    
                <?php include "Section1.php";?>  
        </div>
        <div id="rfrsection2">    
			    <?php include "Section2.php";?>  
        </div>	
        <div id="rfrsection3">    
			    <?php include "Section3.php";?>  
        </div>
    </div>

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.
0
Comment
Question by:DanielAttard
2 Comments
 
LVL 45

Accepted Solution

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

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

Author Closing Comment

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

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