Link to home
Start Free TrialLog in
Avatar of DanielAttard
DanielAttardFlag for Canada

asked on

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

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.
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DanielAttard

ASKER

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