I'm using a listview <ul> in a settings page, and I'd like to be able to enable and disable each <li> line when it makes sense via Javascript. For instance, I have one line which shows how many records have been found on a server, such as "32 Records > ", which the user could then click on to go to a view of those records.
However, if the network was not available, that item should read "Offline ", in gray text with no arrow.
I can make it look just right if I remove the <a> tag around the text, and apply style="color:#808080" to the <li> item. But I can't get the appearance and behavior to change programmatically by, for instance, changing properties like the disabled of the <a>.
Suggestions?
However, if the network was not available, that item should read "Offline ", in gray text with no arrow.
I can make it look just right if I remove the <a> tag around the text, and apply style="color:#808080" to the <li> item. But I can't get the appearance and behavior to change programmatically by, for instance, changing properties like the disabled of the <a>.
Suggestions?