Questions tagged [hide]

Methods for hiding visual components, particularly with regard to HTML.

For hiding segments of webpages, several options exist, such as the setting CSS display property to none and hide method.

This tag is also used for hiding options in other graphical interfaces and generally applies to "hiding" any information.

4735 questions
14
votes
2 answers

Javascript keeps a div hidden until you click a button, need help modifying

Basically, my code right now keeps a few of the divs I have on my website hidden and then when you click on a link, it makes the divs appear. I need help so that it so that when I click one link and a div appears and I click on another link, the…
Megatoaster
  • 203
  • 1
  • 3
  • 8
14
votes
7 answers

How do I only display part of a string using css

I want to be able to display a string of characters up to 10 characters. If the string goes over 10 characters, I'd like to append '...' to the end. For example, if I have the string: 'helloworldmynameisryan' I want it to be displayed like…
DannyD
  • 2,732
  • 16
  • 51
  • 73
14
votes
4 answers

suppress scapy warning message when importing the module

I'm writing a small script, that gathers some information using scapy and then returns some xml code, that I'll pass on to the xmlrpc interface of metasploit. I'd like it that my script only returns xml, and no additional warnings etc. I can…
user857990
  • 1,140
  • 3
  • 14
  • 29
13
votes
3 answers

How to know the status of the div in jquery?

i am developin one application using jquery. i want to know the status of the div wheather the div is show state or hide state something like this: if($("#test").show()==true) { //some operration } else { //some…
user601367
  • 2,308
  • 12
  • 34
  • 44
13
votes
10 answers

jQuery select change show/hide div event

I am trying to create a form which when the select element 'parcel' is selected it will show a div but when it is not selected I would like to hide the div. Here is my markup at the moment: This is my HTML so far..
user2716389
  • 203
  • 2
  • 3
  • 6
13
votes
3 answers

Show welcome div only once per user / browser session

I want to show a welcome div only once per user or session. I know that there is Jquery option. Since am a newbie to jquery, I have not been able to resolve it myself. Please help $(document).ready(function() { …
Gops
  • 687
  • 2
  • 7
  • 20
13
votes
9 answers

How to hide a DIV element when I click outside

I have a div and want to hide it when I click outside. My code is:
The div must be above button
$('#mydiv').click(function(e) { e.stopPropagation(); }); $(document).click(function() { …
andys
  • 708
  • 3
  • 11
  • 29
13
votes
3 answers

Simple fade in fade out div with jquery on click

THIS CODE UNDER HERE WORKS, you can read the answers under here - i edit this for future reference. HTML:
Bank…
user1562679
  • 145
  • 1
  • 3
  • 10
13
votes
7 answers

Fastest way to hide thousands of
  • elements?
  • I have an autocomplete form where the user can type in a term and it hides all
  • elements that do not contain that term. I originally looped through all
  • with jQuery's each and applied .hide() to the ones that did not contain the term. This…
  • Nick
    • 5,228
    • 9
    • 40
    • 69
    12
    votes
    5 answers

    hide notification area progress bar in android when 100% is completed

    I'm using this tutorial to show a notification with a progress bar. Everything works fine. But I can not make the progress dissapear when the task is 100% done How can I do this? tx
    butelo
    • 1,653
    • 1
    • 18
    • 29
    12
    votes
    4 answers

    hide part of the text html, css, javascript

    How to hide part of the text inside div or span ? I have a text of 160 characters but I would like to display only first 40. I have to have the complete text inside my div, span as I do javascript searches.
    m1k3y3
    • 2,762
    • 8
    • 39
    • 68
    12
    votes
    9 answers

    how to hide all divs in jquery

    I have several divs:
    How can I hide them all with jquery. I used $('#div').hide(); and did not work.
    Mythriel
    • 1,360
    • 5
    • 24
    • 45
    12
    votes
    2 answers

    How to hide multiple selectors as once with jQuery

    How come this.. $("div.toggle1").hide(); $("div.toggle3").hide(); $("div.toggle4").hide(); $("div.toggle5").hide(); is not equvalent to this... $('#container div').not('.toggle2').hide(); that occurs on a…
    klewis
    • 7,459
    • 15
    • 58
    • 102
    12
    votes
    4 answers

    iOS / iPhone- Hiding one button when another is clicked

    I have a settings view in my app which has a couple of buttons (actually UISwitches). If the "off" setting on one of the switches is selected, I'd like to hide the second switch immediately. Can this be done?
    Jack BeNimble
    • 35,733
    • 41
    • 130
    • 213
    12
    votes
    4 answers

    Hiding all web page items except for single nested div

    Suppose my web page has a struture like this:

    Content

    Blah

    More…

    MacDonald
    • 133
    • 1
    • 1
    • 6