Questions tagged [show-hide]

show-hide is a user interface behavior used to visually indicate on and off states

show-hide state is usually implemented using a boolean variable, but can also be done using regular expressions. Here are some examples:

2517 questions
223
votes
21 answers

How to hide iOS status bar

In my iOS video app status bar is hidden in some view controllers. I have done this using following code. [[UIApplication sharedApplication] setStatusBarHidden:YES]; It works for iOS 5 and iOS 6 , but not in iOS 7. I tried with this in particular…
Susitha
  • 3,239
  • 5
  • 25
  • 39
178
votes
5 answers

Show pop-ups the most elegant way

I have this AngularJS app. Everything works just fine. Now I need to show different pop-ups when specific conditions become true, and I was wondering what would be the best way to proceed. Currently I’m evaluating two options, but I’m absolutely…
Bruno
  • 5,861
  • 6
  • 31
  • 51
166
votes
12 answers

How to add display:inline-block in a jQuery show() function?

I have some code like this: function switch_tabs(obj) { $('.tab-content').hide(); $('.tabs a').removeClass("selected"); var id = obj.attr("rel"); $('#' + id).show(); obj.addClass("selected"); } The show function adds…
Giri
  • 4,551
  • 10
  • 33
  • 45
155
votes
7 answers

Difference between jQuery’s .hide() and setting CSS to display: none

Which am I better off doing? .hide() is quicker than writing out .css("display", "none"), but what’s the difference and what are both of them actually doing to the HTML element?
benhowdle89
  • 34,076
  • 63
  • 192
  • 314
137
votes
18 answers

How do you hide the warnings in React Native iOS simulator?

I just upgraded my React Native and now the iOS simulator has a bunch of warnings. Besides fixing them, how do I hide these warnings so that I can see what's underneath?
Some Guy
  • 9,920
  • 18
  • 48
  • 71
105
votes
10 answers

Show hide fragment in android

I am developing application which contains 2 fragments and i want to show hide according to my need. Following code has simple example of my problem. This simple Fragmentactivity contains 1 button and one listfragment. This simple example works…
abidkhan303
  • 1,581
  • 2
  • 16
  • 28
84
votes
4 answers

Make all opened document tabs visible

I would like to see all files or documents I've opened in Visual Studio. I do not want them to be auto hidden or hidden on overflow. How can I achieve it?
Dung
  • 15,167
  • 6
  • 51
  • 49
61
votes
4 answers

Using jQuery, how do you find only visible elements and leave hidden elements alone?

So I start with items 1-4:
Lorem
o_O
  • 4,862
  • 11
  • 46
  • 84
56
votes
10 answers

Android: show/hide status bar/power bar

I am trying to create a button where I can hide or show the status bar on my tablet. I've put in the…
B770
  • 1,154
  • 3
  • 16
  • 34
50
votes
6 answers

Toggle visibility property of div

I have an HTML 5 video in a div. I then have a custom play button - that works fine. And I have the video's visibility set to hidden on load and visible when the play button is clicked, how do I return it to hidden when the play button is clicked…
tfer77
  • 736
  • 1
  • 6
  • 15
45
votes
8 answers

How to set "style=display:none;" using jQuery's attr method?

Following is the form with id msform that I want to apply style="display:none" attribute to. Also the check should be performed before adding the "style=display:none;" property. That is if it is…
user4407686
37
votes
5 answers

Prevent onClick event when selecting text

I've got this problem where I need to show and hide divs when clicking on a table cell. However, I also want people to be able to select text and copy it within the cell without hiding the information. Totally open to changing the design if…
PatrikJ
  • 1,958
  • 1
  • 18
  • 29
36
votes
2 answers

Show/Hide components in ReactJS

We have been experiencing some problems in using react now but it kinda boils to one part of how we have been using react. How should we have been showing/hiding child components? This is how we have coded it (this are only snippets of our…
index
  • 3,407
  • 4
  • 33
  • 51
32
votes
7 answers

How to Toggle a div's visibility by using a button click

Below is my javascript code which i used to show a div when clicked on a button. How can I hide it when clicked again? And then on clicking it, div should be visible again?