INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Help Using Bootstrap

Help Using Bootstrap

(OP)
I'm just now learning bootstrap. I'm using the helper classes to design a responsive page.

Given this HTML: <span id="CommissionersTableHeadingFlagUp" class="hidden-xs glyphicon glyphicon-triangle-top">Up arrow gliph</span>

Does anyone know what property is changed when the visibility helper classes are used?
I've tried to test it's visibility:

elemVis=document.getElementById('CommissionersTableHeadingFlagUp').style.visibility
also tried: elemVis=document.getElementById('CommissionersTableHeadingFlagUp').style.display;

But both return an empty string. Is there a way to test the current visible state?
url: New Page
The goal is to toggle visibility of table "CommissionersTable" and toggle the up/down arrow gliphs in div "CommissionersTableHeading"
Want appropriate gliph displayed for the media width (media =xs hide table/display down arrow) else (show table/display up arrow) By settng onclick event in div "CommissionersTableHeading"



Lyndon

RE: Help Using Bootstrap

You can only use an element ID value ONCE in a document.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Help Using Bootstrap

(OP)
I don't see any element id used twice? Maybe I'm missing it

Lyndon

RE: Help Using Bootstrap

View Source -> Ctrl+F-> then type or paste .. CommissionersTableHeadingFlagUp into the search box.

F3 moves through the four instances.





Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.

Never mind this jesus character, stars had to die for me to live.

RE: Help Using Bootstrap

(OP)
OK I fixed the duplicates, thanks. style.display and style.visibility are still empty?

Lyndon

RE: Help Using Bootstrap

Javascript will only report back values set by itself. If they are set by CSS, they cannot be obtained by JS and will be empty.

Beyond that, it appears its not changing the visibility property, but the Display Property from inline-block, to none and back.






----------------------------------
Phil AKA Vacunita
----------------------------------
OS-ception: Running Linux on a Virtual Machine in Windows which itself is running in a Virtual Machine on Mac OSx.

Web & Tech

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close