Questions tagged [show-hide]
show-hide is a user interface behavior used to visually indicate on and off states
show-hide
2,692
questions
232
votes
21
answers
193k
views
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 , ...
212
votes
21
answers
234k
views
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?
178
votes
5
answers
236k
views
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 ...
173
votes
12
answers
209k
views
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(...
155
votes
7
answers
355k
views
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?
118
votes
10
answers
217k
views
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 ...
93
votes
7
answers
48k
views
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?
72
votes
4
answers
111k
views
Using jQuery, how do you find only visible elements and leave hidden elements alone?
So I start with items 1-4:
<div class="someDiv bold italic" style="display: none;">Lorem</div>
<div class="someDiv regular italic" style="display: block;">Lorem</div>
<div ...
64
votes
12
answers
129k
views
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 onCreate
getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);
getWindow()....
61
votes
7
answers
17k
views
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....
57
votes
7
answers
129k
views
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 ...
55
votes
8
answers
353k
views
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.
<form id="msform" style="display:none;">
</form>
Also the check should be performed before ...
36
votes
7
answers
147k
views
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?
<script type="text/...
36
votes
2
answers
88k
views
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 ...
34
votes
10
answers
18k
views
Sphinx, reStructuredText show/hide code snippets
I've been documenting a software package using Sphinx and reStructuredText.
Within my documents, there are some long code snippets. I want to be able to have them hidden as default, with a little "...
29
votes
5
answers
143k
views
android layout with visibility GONE
Four views are using same xml. I want to show a linear layout for view 1 only.
I put android:visibility="gone" in xml. And then I am doing the following for view 1-
LinearLayout layone= (...
27
votes
5
answers
62k
views
splash screen application and hide action bar
I'm trying to figure out how is it possible to hide the action bar for a splash screen activity.
I did something which hide my action bar on my splash screen, but there is one problem:
before my ...
24
votes
8
answers
108k
views
jQuery Show-Hide DIV based on Checkbox Value
Using AJAX I populate a DIV with a bunch of checkboxes (each with it's own unique ID). The IDs are "projectID1", "projectID2", "projectID3" and so on... I have given all checkboxes a class of "pChk".
...
20
votes
2
answers
50k
views
show/hide div based on browser size using ONLY css?
I am a trying to get some divs to show/hide based on browser size, using only css media queries... but nothing seems to be working... please help if you can and let me know what i'm doing wrong... ...
19
votes
6
answers
151k
views
Show/Hide Div on Scroll
I have a div that sits at the bottom of a slideshow that I want to disappear when the user scrolls or uses down arrow then reappears when scrolls back to the top. I am guessing this is incorporating ...
19
votes
4
answers
22k
views
How to create login in ionic 2 with show/hide password
I wanted to create a design like this using ionic 2 ->
https://codepen.io/Floky87/pen/bVopyZ
Which is a login functionality that has a hide/show password.
Here's my HTML code
<ion-header>
...
19
votes
3
answers
124k
views
Angular Hide With Button
So I'm working with Angular and I'm trying to make a button that when clicked disappears. I have tried to use [hidden], (click)="showHide = !showHide", and a bunch of other methods. Nothing is working ...
18
votes
5
answers
27k
views
jQuery and css: hide/show select options with a certain css class
In the html code I have select options like this:
<option value="1" class="myclass5">Value1</option>
In jQuery:
var cod = $(this).val(); // This is the value of another select: when ...
17
votes
3
answers
56k
views
jQuery Parent Sibling selector
I have a HTML document like below:
<td>
<div class="commentLink">
<a href="javascript:ShowBox()">Show</a>
</div>
<div class="...
17
votes
11
answers
58k
views
When a user clicks Show link, display the password, hide it when clicked again
I am trying to get this simple script to work. Basically, when a user clicks on the Show link, it will display the password in the password text box and hide it when it is clicked again. I have ...
16
votes
2
answers
15k
views
Dynamic Flot graph - show hide series by clicking on legend text or box on graph
I am working on dynamic flot graph with 3 series. My need is to hide/show series when clicked on legend. I have seen different examples that will work fine for static graphs but for dynamic graph, ...
16
votes
6
answers
28k
views
how to find a window's SW_SHOW/SW_HIDE status
I am trying to determine a window control's visibility that has been hidden or enabled with CWnd::ShowWindow(). (or ::ShowWindow(hWnd,nCmdShow))
I cannot simply use ::IsWindowVisible(hWnd) as the ...
15
votes
5
answers
39k
views
How to hide a jqgrid column dynamically
I am implementing jqgrid in my asp.net MVC web application.
In my grid i have two columns edit and delete. The delete should be visible only if the user is logged as admin .
How can we dynamically ...
15
votes
4
answers
9k
views
how to set visibility GONE like android in IOS?
Anybody know a simple way to hide a label and let the other views of the screen use the place left blank ? And make the opposite when showing back that view. Something like Android setVisibility = ...
15
votes
2
answers
16k
views
Twitter Bootstrap fluid-container Sidebar Toggle
I'm using twitter bootstrap to develop an app. 2 column layout. One sidebar and main content. Following is the layout.
<div class="container-fluid">
<div class="row-fluid">
<div ...
14
votes
7
answers
31k
views
JQuery: Hide anchor if href is empty
Been on this one for a while now. Basically, I need to check where a href on an anchor tag with the class .pdf-download is empty, and if it is, hide it.
I have attempted a few options but with no ...
14
votes
7
answers
16k
views
How to hide desktop icons programmatically?
How can I show/hide the desktop icons programmatically, using C#?
I'm trying to create an alternative desktop, which uses widgets, and I need to hide the old icons.
13
votes
3
answers
20k
views
MVC 3 Webgrid - how do you hide columns you do not want to be visible?
I have a webgrid and there is a column I want to be visible only to certain users.
Currently I have coded the grid as follows
if (Context.User.IsInRole(Role.Inputter) || Context.User.IsInRole(Role....
13
votes
1
answer
10k
views
Hide div element with jQuery, when mouse isn't moving for a period of time?
I have a broadcasting video site, with a menu, which should be hidden, when mouse isn't moving for a while (lets say 10 seconds). As well, it should appears back, with mouse move. What is the best way ...
13
votes
2
answers
110k
views
Bootstrap: How to fade and then hide something using the default 'fade', 'hide', 'in' classes?
Bootstrap obviously makes use of the 'hide', 'fade' and 'in' classes for its transitions.
The problem I'm having is that using 'fade' and 'in' will change the opacity from 0 to 1. The transition ...
13
votes
1
answer
11k
views
How does jquery's show/hide function work?
I have a bit of an issue with a toggle visibility function which operates on the hidden attribute of an element. Trouble is, this lacks browser compatibility..
function hide(e) {$(e).hidden=true;} ...
13
votes
7
answers
91k
views
Show hide div with animation
I made this script, which opens a div with the right class and close the others.
function showhide(id) {
if (document.getElementById) {
var divid = document.getElementById(id);
...
12
votes
6
answers
15k
views
Hide keyboard in AlertDialog
I have an alertdialog with an editext. For this Edittext I make keyboard appear and I want that when user press ok or cancel to hide the keyboard. The strange problem is that when user choose ok, the ...
12
votes
5
answers
99k
views
Angular 8 hide divs and show div on button click
I am new to angular and having an issue with hide and show content.
I have 3 buttons, button A, button B and button c. When i click on button A, the content of the button A ie div A should be visible,...
12
votes
2
answers
14k
views
AngularJS - How to hide a div when clicking outside of it
I have an angularjs application which use to open and hide a hidden div.
Here is a jsfiddle with a sample - jsfiddle
$scope.openLogin = function(){
$scope.userLogin = true;
};
$scope....
11
votes
6
answers
25k
views
iOS/Swift - Hide/Show UITabBarController when scrolling down/up
I'm quite new to iOS development. Right now i'm trying to hide my tabbar when I scroll down and when scrolling up the tabbar should appear. I would like to have this animated in the same way like the ...
11
votes
2
answers
18k
views
Hide autolayout UIView : How to get existing NSLayoutConstraint to update this one
I know how to modify a existing constraint. But I would to know if someone has found a solution to get a constraint without save this one as a property.
Current solution to set Constraint height:
1) ...
10
votes
4
answers
38k
views
C# winforms startup (Splash) form not hiding
I have a winforms application in which I am using 2 Forms to display all the necessary controls. The first Form is a splash screen in which it tells the user that it it loading etc. So I am using the ...
10
votes
1
answer
14k
views
What is EXT JS's method to use "display:none"
Hello I have to load an ajax element into div. That div would earlier have another sub div by the name div1, and to remove/hide the div1, I am doing a Ext.get('div1').hide(). But this is doing a ...
10
votes
4
answers
7k
views
Hide keyboard when showing DialogFragment on tablet?
I am using DialogFragment with ListView (to list all customer) and EditText (to search from list), it's working fine. But, whenever the dialog shows from the fragment, the keyboard is always shown ...
10
votes
2
answers
21k
views
How to show/hide grouped views in Android?
I want to create an activity such as mentioned in photo...
as soon as I press the maximize button I want it to become full screen for the activity and part 1 become minimize, and again when I press ...
10
votes
1
answer
29k
views
Show/Hide <select> dropdown, with jQuery, based on value
I'm trying to build a custom dropdownlist which show/hide a second set of dropdowns based on it's selection.
I was wondering if anyone here might be able to help with a solution to this.
var i = 0;...
9
votes
4
answers
68k
views
Show/Hide with Checkbox using jQuery
I am trying to have a section of an html form to show/hide based on a checkbox. This is the essence code I have:
<script src="/js/jquery.js"></script>
<script language="JavaScript">...
9
votes
3
answers
20k
views
How to hide and show MarkerClusterer in google maps
i'm trying to hide/show markerClusterer when user clicks some buttons:
Here is what i'm trying to do:
map = new google.maps.Map(document.getElementById("mappa"),mapOptions);
var marker_tmp = ...
9
votes
5
answers
48k
views
Hide parent div on click using jQuery
So I'm trying to write a super simple script that will allow a user to throw any link or button with the class .close inside of a div, and when that .close link is clicked, it automatically closes the ...