Most voted "button" questions
"Button" means "button" in English. Use this tag to subjects related to form buttons or buttons built in other ways and that do some action when clicked.
Learn more…204 questions
Sort by count of
-
0
votes1
answer59
viewsMaking a button read the functions
I am beginner in programming and I need help with the function of a button, I do not know how to make this button "read" the age values, the idea of the site is to enter the information to see if…
-
0
votes1
answer104
viewsI click the button and do not add the div - C# Asp.Net
I click the button and it does not add me to div, but sends it to the database, someone can help me? C# protected void img_btn_enviar_nome_Click(object sender, EventArgs e) { UtilizadoresBot…
-
0
votes1
answer296
viewsError: "Cannot implicitly convert"void" to "Eventhandler"
I was trying to make a button that passed the information of an entry and a Stacklayout and this error appears to me: public MainPage() { InitializeComponent(); Entry entry = new Entry() { Keyboard…
-
0
votes0
answers69
viewsButton that disappears when scrolling the screen
Hey, guys, could you help me out in the community? I’m wanting to make my app button hide when I scroll the screen up, and appear when I scroll down. Like the application in the image below, when we…
-
0
votes1
answer634
views -
0
votes1
answer88
viewsButton Does not answer Javascript command
I have a page that provides a coupon. Ah an image informing that it should be clicked, and when clicking it was for the same copy the text informed in the code. But after I added the pop-up, it’s…
-
0
votes1
answer40
viewsError when routinely attaching to button
Good afternoon I’m trying to get a button to open a new app but when I run the app it won’t open. Knob <Button android:id="@+id/solare" android:layout_width="83dp" android:layout_height="83dp"…
-
0
votes0
answers106
views -
0
votes1
answer266
viewsSave form output to txt
I’m trying to save what is written in a form in a txt file while the site’s Mysql does not update. I’ve seen an answer here, but it doesn’t fully answer my question What can I use to save the form…
-
0
votes1
answer559
viewsChange background when clicking and then return the original color
I’m having a hard time at the moment when I select several Textview, I can change the color normally and return when the id is the same as the one selected. My problem is this: When I change the…
-
0
votes2
answers161
viewsPHP = Send Message + Message Thanks + (button) or refresh
Boas, I am bicão and I keep moving in my site I would like the help of you s: After the customer sent message appeared white screen with message of thanks. I fixed to return to the site but the…
-
0
votes1
answer79
viewsHow to assign a script to a button?
Good afternoon! I am doing documentation and need a side menu button to show/hide a div. I tried this script here but it only shows/hides "Content 2" and never "Content 1": <script> function…
-
0
votes3
answers1262
viewsHide a div and show another
Good afternoon! I am trying to solve a little problem (I believe to be simple). I made a script to show/hide the Ivs, but I can’t make it so that when I press button 2, it hides the div from button…
-
0
votes1
answer119
viewsDisplay the contents of a button and make it disappear after a period
I’m totally new with android studio and I’m trying to create a little memory game, the game consists of a series of buttons, a row 4x4, all buttons appear being a "?" when you click the button it…
-
0
votes1
answer241
viewsButton mobile device responsive
How could do with this button fit when and for mobile device? When it’s for PC it gets right. This is the code. <div id="carouselExampleControls" class="carousel slide" data-ride="carousel">…
-
0
votes1
answer212
viewsSetting Image on a Button using Netbeans 8.2
I am trying to insert an image . png in a jbutton, I put the image in a package and I am searching them with: btnCalcBanco.setBackground(new java.awt.Color(255, 255, 255)); btnCalcBanco.setIcon(new…
-
0
votes1
answer86
viewsPython3:Kinter:Button runs alone
good afternoon I was studying graphical interfaces in Kinter and this problem arose My interface has a simple button and its function was simply to print the contents of a variable that was passed…
-
0
votes1
answer108
viewsHow to create a snap button to get the selected value in a form-control in PHP
I have a form-control that carries a dropdown. What I need is a button in front of this dropdown that when selecting an item of his, click the button, the selected value of the dropdown is stored in…
-
0
votes1
answer59
viewsHow to replace one layout with another in Qhboxlayout?
I created two Qgridlayout, with 16 buttons each, numbered from 1 to 32. I stored the two Qgridlayout in a list (one at each list position). This list is inserted into a Qhboxlayout to display the…
-
0
votes1
answer52
viewsHow to make the button go to different links? According to the variables of my "form"
function myFunction() { var cor = document.getElementById("Cor").value; var tamanho = document.getElementById("Tamanho").value; console.log(cor) console.log(tamanho) if (cor === "Luz Fria"…
-
0
votes2
answers45
viewsEnable the button when fields are filled in
I’m wanting two things are: button enabled when fields are filled OR make mandatory in the fields (required), this I put the required in the input fields, when clicking Save/Continue, simply it…
-
0
votes2
answers1471
viewsHow to change color of a div with button click on Reactjs + CSS
I’m trying to change the color of div with button click, apparently it was supposed to work, but it only works on the second click, I don’t understand. The code is like this : The function I change…
-
0
votes1
answer27
viewsButton does not submit to the form within a modal
Good evening, I have a problem submitting a form, I am using codeIgniter 3 and I have the following screen: <!-- modal --> <div class="modal fade" id="modalArea" tabindex="-1"…
-
0
votes1
answer247
viewsHow to resolve Uncaught Typeerror: Hidden is not a Function at Htmlbuttonelement.onclick?
I have a javascript file with this code: const newTopic = document.getElementById('topic'); const introduction = document.getElementById('introduction'); function hidden(){…
-
0
votes0
answers26
viewsHow to put image Buttons on an image using Tkinter?
Hi, I’m developing a game and I need buttons with images to appear on another image. These buttons also need to switch between different game screens. However, I just can’t get the buttons to appear…
-
0
votes1
answer30
viewsProblem with a Javascript button
I’m in need of a help, I’m trying to make a comment program automatically, however I arrived in a empasse, I have 2 buttons inside the site and I always end up picking the first function…
-
0
votes1
answer84
viewshow to have a button type Submit and button
Hello I am developing a request form, the problem is the button, or it saves (using type Submit), or it appears the modal (using type button), is there any way to make a button that saves the form…
-
0
votes0
answers13
viewsAndroid Studio (Java) - Help with gesture direction detection using buttons
Hello, I’m starting to program, I’m making an app where I need to press a button and if it gets pressed and is dragged I want to know the direction it was dragged. I’m using the Java language.…
-
0
votes0
answers31
viewsDevexpress - How to change the name of the button dynamically inside Datagridview
Please, I need some help, I’m new in development c# widowsform. I have a Datagridview that pushes some buttons for each line, I can’t program so that the name of the button "Button.Caption" changes…
-
0
votes0
answers28
viewsHow to click the Instagram FOLLOW button with Selenium using python
Instagram is increasingly hindering the use of automation on your site. This code click on the first button with the text 'Follow' You can use this to find and click: from selenium import webdriver…
-
0
votes1
answer32
viewsFunction to create buttons according to the database
I have in my database several information and that for each information there should be a button that directs the user to the screen where a guide will be displayed according to the chosen option.…
-
-1
votes1
answer127
viewsWebsite button works on desktop but not on mobile
I have a button on the website that triggers a lightbox to fill out a contact form. The problem that the button is only clickable on Desktop. When accessed by a mobile device, this button no longer…
-
-1
votes1
answer507
viewsHow do I place a downloadable file with a unique id for each person who downloads
How do I put a file to download to my website where the button link changes every time after the file is downloaded and never to a person to download by the same link that has already been…
-
-1
votes1
answer185
viewsDelphi Firemonkey button in tTabControl does not respond
I’m creating an app with Berlin Starter Edition. I put a tTabControl in the Form, I created a Tab and put a tButton in it. Both the tTabControl as to the tButton are Enabled. But when I run the…
-
-1
votes3
answers827
viewsCreate serial number generator button
So, I need to make a button that generates a serial, inside an input text when clicking. But the serial would need to contain [wf][2017] as the default and the remaining random. Ex: wf2017892143. I…
-
-1
votes2
answers329
viewsGrab Value from multiple buttons in Javascript
How to get the value of various buttons using Javascript ? Qual cor você prefere ? _______ ______ ______ |verde| |Azul| |Rosa| ------- ------ ------ Qual sorvete você prefere ? ___________ _________…
-
-1
votes1
answer55
viewsHow to put more than one link on the same button?
How can I put more than one link on the same button? Kind of a dropdown. Example: https://passoapasso.org.br/transparencia/ ps: I use Wordpress.…
-
-1
votes2
answers385
viewsI can’t change the button color (xml) in Android Studio
I can’t change the color of the button in Android Studio. Whenever I create a button by XML it takes the primary color that is set in Themes.xlm and when I set a color, the code does not error but…
-
-1
votes1
answer1841
viewsContent written on a responsive button
I have a bootstrap Collapse which is the following already modified code. <div class="card"> <div class="card-header" id="headingOne"> <h5 class="mb-0"> <button class="btn…
-
-1
votes1
answer168
viewsAndroid Studio Click a button inside a Fragment
Hello, I need to trigger the event click a button that is inside a Fragment. I was following the answer of this article, but (excuse my ignorance) it was too complicated for me to understand,…
-
-1
votes1
answer153
viewsReactjs Components - Button/rendering problem
I have a Componente Button and the same is found within another componente Main. My purpose was that by clicking on this componente Button, it was alternating between other visual components inside…
-
-1
votes1
answer17
viewsHREF Setting Button Color
I have a fa-icon basic and want to apply a link in it to redirect to facebook. but when I added the property href, it changed the color of the button leaving blue, as in the image below: my code:…
-
-1
votes1
answer274
viewsClick on Button using Selenium Basic with VBA
I’m trying to do an automated data search on a page of my work, and I can’t get past the login part, I can enter Login and Password, but all attempts to access the "Sign in" button are in vain. I’m…
-
-1
votes1
answer22
viewsHide button if label value for X
I created a page that generates a verification code for the person when they click on the "Generate" button, so the page refreshes and the code is shown, how do I make the button on this page only…
-
-1
votes1
answer20
viewschronometer that starts on the button is on top of each other
So I’m beginner and wanted a tip how to do so when click the button do not stay 2 chronometer at the same time one on top of the other believe that with clearInterval solve more I got no idea where…
-
-2
votes1
answer453
viewsHow do I make a cell to be a button in a table?
<div id=table> <tr id="tablebottom"> <th> <h5>Hoje</h5> </th> <th> <h5>Amanhã</h5> </th> </tr> </div> My question is how to…
-
-2
votes1
answer125
viewsAdd onclick event in javascript button
I’m trying to make a page that, when clicked, creates a button that when pressed it calls the function back in the history: function goBack(){ window.history.back(); } function criarBotao(){ var…
-
-2
votes1
answer19
viewsJavascript handling through a button multiple snippets of Html text
The code below works for a specific ID, I needed a code that affects several elements and not just a specific id. function myFunction() { var x = document.getElementById("myDIV"); if…
-
-2
votes1
answer640
viewsHow to remove the question mark "?" at the end of the URL of a request?
I’m using a form to trigger a request GET to an endpoint of mine <button> instead of the tag <a> for links because the CSS style was only made for the tag <button>. Behold:…
-
-2
votes2
answers518
viewsDisable link and button after clicking
I have already researched here and other sites but I have not found an answer that applies correctly to my scenario. The idea is the following I have two pages one with a link and the other with a…