Questions tagged [toggle]

To toggle a boolean variable is to switch it to its opposite state. If it is on, switch it off; if it is off, switch it on. In a desktop or web user interface, a toggle may be clickable switch or button that alternates the state of something in the application.

To toggle a boolean variable is to switch it to its opposite state. If it is on, switch it off; if it is off, switch it on. In a desktop or web user interface, a toggle may be clickable switch or button that alternates the state of something in the application.

5926 questions
1
vote
4 answers

Show form within a div on buttonclick with Jquery

So i'm using cloud 9 to make a website. Right now i'm stuck at showing and hiding my form. I have a fixed sidebar with a "Contact" button. Pressing that button should toggle my div #page-wrapper which contains my form as a sort of popup window in…
1
vote
1 answer

Javascript - Make element clickable and toggle off other button

How can I make the plus/minus sign clickable? It's not right now... How can I make the other button off (dropdown) if open when I click on the second button? JAVASCRIPT $(".dropbtn").append(' +'); function…
Jacques Goudreau
  • 511
  • 1
  • 5
  • 10
1
vote
0 answers

How to Hide and Unhide Column with Custom Menu in Google Sheets using Google Script

I would like to "TOGGLE" between two functions (hide & unhide of a specific column - allocated to a specific month), by clicking on a custom item (monthName) in a menu that I created in Google Sheets (using the Ui). Currently only the first function…
1
vote
1 answer

Changing text with a toggle function

I made my checkmark input have a toggle function to show/hide an input box, but what I am trying to do is get two different options of text to fade in with the toggle choice ( and obviously since the checkmark is true on page load, for the…
Paul
  • 3,348
  • 5
  • 32
  • 76
1
vote
1 answer

toggle menu not working JQuery

My website has login system. When menu is clicked and the user is not logged in, showpopup() function will be called and it will show a sign up form. When menu is clicked and the user is logged in, it will show dropdown and afterlogin() will be…
H.Kim
  • 277
  • 1
  • 10
  • 25
1
vote
2 answers

jQuery toggle dropdown not working

I am creating a dropdown list with jQuery and toggle function, as I want the selector to be clickable with dropdown options displayed with a custom scrollbar. Up to now I have some code like this:…
Sammi
  • 261
  • 5
  • 20
1
vote
1 answer

toggle/visible check wrong behavior or a bug in the library

I have a section on which I call toggle() with the callback format. What I have noticed is that if I do a visible check on a child element of the toggled section, that is always the opposite. Instead of visible I get false. I have the following code…
Pentium10
  • 204,586
  • 122
  • 423
  • 502
1
vote
0 answers

I'd like the sidebar menu to show as a default on the mobile phone

I have a bootstrap responsive site. When I open it on the PC, the sidebar menu shows, which is exactly what I want. When I open the site on the iPhone the sidebar menu does not show as a default. When I press the Toggle Menu button it then displays.…
John M.
  • 347
  • 1
  • 11
1
vote
0 answers

Toggle the background using local storage

My theme is getting changed once page is refreshed. Please help me to get the page with same style once we change the theme (after refresh the page). Demo. https://jsfiddle.net/aopf97z3/1/ The current class is not appearing once the page is…
sundhar
  • 11
  • 1
1
vote
0 answers

webticker doesn't work after .toggle()

jQuery webticker is working fine as long as its state not toggled. You can run the below snippet and see that it is working fine. But once you click on the button to hide it and then click it to show it again, it stops working. I can't initialize…
Suhaib Janjua
  • 3,538
  • 16
  • 59
  • 73
1
vote
3 answers

jQuery detect child

HTML:
1
vote
3 answers

bootstrap toggle inside bootstrap table

I am using a bootstrap toggle styled checkbox (data-toggle="toggle"). This has been working perfectly, no problems. However, if I put this checkbox inside of a bootstrap table (data-toggle="table") the bootstrap toggle checkbox no longer functions…
Melanie
  • 13
  • 1
  • 1
  • 6
1
vote
2 answers

Swift: Toggling checkmark to ON for last selected cell only - not working

I have a given number of cells in a section. My goal is to have only the last selected cell to display a checkmark. The other cells should not. I have found a function in this similar but older thread. I've modified it (and I bet here lies the…
user1269290
  • 451
  • 1
  • 6
  • 18
1
vote
2 answers

is it possible to make a toggle function in scheme?

In ruby you can create a simple toggle function like so: @switch = false def toggle @switch = !@switch end toggle # => true toggle # => false toggle # => true I am wondering if it is possible to do it in scheme. The closest I can get…
Tim
  • 365
  • 2
  • 15
1
vote
2 answers

DrawerToggle may not show up because NavigationIcon is not visible

ERROR: DrawerToggle may not show up because NavigationIcon is not visible. You may need to call actionbar.setDisplayHomeAsUpEnabled(true); public class Homepage extends AppCompatActivity implements…
Farwa Batool
  • 11
  • 1
  • 2
1 2 3
99
100