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
-
1
votes2
answers1735
viewsHow to make a button that calls an iframe
In the iframe below, I need it just to be shown when I click any button. How do I do this? <div> <iframe width="1100" height="500" id="iframe" src="https://www.google.com" scrolling="no"…
-
1
votes1
answer732
viewsPositivebutton and other alertDialog buttons on android are disabled, how to solve?
I have in my small project a alertDialog, that is called to give some options to the user. Everything was working, until suddenly the buttons (positiveButton, negativeButton and neutralButton)…
-
1
votes0
answers30
viewsButtons in mobile version do not work
Good morning guys, I have a finished site, it is working perfectly on the desktop, but in mobile mode, all buttons do not work, the side menu however is perfect, only the buttons of the pages that…
-
1
votes1
answer263
viewsSet invisible button after running Uitableview
I have a question in my Uitableview, I put a button on the Cell of a Tableview. cell.btnDownload.tag = indexPath.row; [cell.btnDownload addTarget:self action:@selector(btnDownloadClick:)…
-
1
votes2
answers413
viewsHow can I put a button to make it visible?
How can I click a button and make the other button visible?? Button vibrar; cor = (Button) findViewById(R.id.cores); public void clica (View View){ cor.setVisibility(View.VISIBLE); }…
-
1
votes3
answers572
viewsI want to change the color of the button according to the value of the variable
I created an if/elseif condition inside the foreache, to change the color of the pay status button. I have three status and are three colors for home status. Only he’s not getting the colors. I…
-
1
votes1
answer42
viewsbutton doesn’t seem to be in the DOM
Good evening, I have a jquery table where in a column I return a button { "data" : 'sla.value', 'render': function ( data, type, full, meta ) { return ' <button id="show"…
-
1
votes2
answers868
viewsCSS javafx Color Text
I have a Button and I am using javafx, what I need: the text of the button is written Search, I need the 'B' to be in red and the "uscar" to the default color, I have tried everything and I am not…
-
1
votes1
answer1603
viewsHow to make when the button is pressed it continues with different color
Hi, I’d like when you hit the button, it would change color and continue like this until another one is pressed. I tried with the :focus, but if press another element the color back. Buttons:…
-
1
votes2
answers960
viewsSearch inside the input and open another page
Hello, I’m creating a project in my computer course. I would like to know the best way to do a database search within an input, and open another search page. Note: I am using php, I used input and…
-
1
votes0
answers205
viewsLabel on a button
How to add a label to a button, as in the image? By clicking this button, this label Just to let you know there’s something new on the menu. how to do something similar?…
-
1
votes1
answer645
viewsHow to add an icon to the button on Xamarin?
Guys, I came across a silly thing here more that left me Arrado, I would like to put an icon on a button inside the layout of my application, so I’m not able to do, below the code of my button...…
-
1
votes2
answers10833
viewsCreate a button to exit the app
I created this code to close app for it instead of closing reboot. I have Mainactivity and the first one has a splash screen. What I have to change . public void existeapp (View View ){ existeapp();…
-
1
votes0
answers47
viewsGrab button values that are generated randomly
I need to get the values in the button click event, which are automatically generated with php. I’m not getting the job done javascript/jquery to do this. Follow the code that generates them: while…
-
1
votes0
answers23
viewsError pressing button in app created from Android Studio
Guys, here’s what happens when I test this code on the emulator it works normally, but when I install the apk on some physical cell phone and press the button btn the application hangs and says it…
-
1
votes1
answer59
viewsHow to detect when the mouse is pointing to a button
I have a form where certain actions will be executed only when a button btn have the mouse cursor on it, which button event I use ?
-
1
votes1
answer78
viewsSelect items with Longclick, imagebutton
I have the items of a list, which when clicking on the imagebutton, a message is sent to the user. I would like to implement longclick so that I can select multiple and send messages to multiple…
-
1
votes1
answer598
viewsOpening an Activity and returning saving the main state
After many researches I came across the following situation: I’m on my own Main Activity and would like to open another Activity(passing parameters to Activity2[In case a meditate]), after this use…
-
1
votes1
answer605
viewsOnclick to close a modal without Reload
This button closes a modal, but needs to be without causing a Reload. There are ways? <button type="button" class="close" data-dismiss="modal" aria-label="Close"…
-
1
votes1
answer225
views -
1
votes2
answers856
viewsHow to make a button filter results in a datatable?
I have little knowledge in javascript and datatables. I made several unsuccessful attempts to include a filter button in a datatable similar to the site: https://newsonaut.com/datatable/ I have the…
-
1
votes1
answer206
viewsKnow the color of Button Android Studio (Java)
Good afternoon, I need to know how to read the color of the Button and store in a variable in java for Android platform but is showing errors, can help me ? Follow my code below: private EditText…
-
1
votes1
answer25
viewsCreate a javascript function for all application buttons
Guys, I would like to create a javascript function for all the buttons of the application, IE, every button when it is clicked it will call this function. Note: No need to put the onclick on each…
-
1
votes1
answer42
viewsHow to make a button addition system with unique events for Launch?
I would like to know how to make a system in which automatically adds in a Flowlayoutpanel, for each file of a folder, a button with a specific event that, when clicking, starts the application. The…
-
1
votes1
answer35
viewsRefresh the page after 3 clicks on the button
I developed a code in Javascript that generates a sequence of random numbers and I wanted to know if I can put a limit of 3 clicks on this button and after the 3rd click the page is updated. I’ve…
-
1
votes1
answer6086
viewsCreate Boot using Document.createelement()
I really need a little help since grad school. I need to create this function: <input type="button" value="Refresh Page" onClick="history.go(0)"> However it should be created using the method…
-
1
votes2
answers10476
viewsPick up value or button name with Jquery
Does anyone know how I could catch the value of a button using Jquery? What I want to do is use this value in a textarea, so it doesn’t necessarily have to be the value, the name would also serve. I…
-
1
votes2
answers968
viewsPython 3.x Show typed data in an Entry on a Label only after pressing a button
I wanted to know the following; In my show, there’s: Entry1 -> where the user enters some information btn1 -> where it confirms the previously typed name and data is displayed on the console…
-
1
votes1
answer335
viewsButton with two value only with html is possible?
You want to put two actions in the value field of a button, using html only. It is possible? My original button: <button type='roll' name='roll_arma1' value='&{template:default} {{name=Ataque…
-
1
votes1
answer550
viewsButton "Play/Pause" - How to restart playback?
I made a simple button "play/pause" for audio, with the following script: <audio id="myAudio" src="http://www.sousound.com/music/healing/healing_01.mp3" preload="auto"> </audio>…
-
1
votes1
answer67
viewsHow to assign multiple events to the same button?
I have a layout where I can only have one button and need to use the same layout for various events onClick in a cardView. How do I get this? public void onClick(View arg0) { switch…
-
1
votes1
answer256
viewsbutton sends Hidden input field value
I have a problem with the use of a specific button in the project. I’ll explain: I have a window opened by the window.open command, so in this open window I have a button that takes the value of two…
-
1
votes0
answers354
viewsDelete registration from the javascript React table
Good morning, I’m having trouble erasing data from an API, My intention would be to put a Button in a column and when clicked on that Button the data of the respective row would be deleted. This is…
-
1
votes1
answer43
viewsCSS does not access the button inside the if
The CSS is working with the button inside the else but it does not work with the button located inside the if. The button inside the if refers to the page with the logged in user and the else with…
-
1
votes0
answers726
viewsChange the text color of a button via XML by clicking on it
Good afternoon ! I’m creating a styleGuides for an android application and I’m having difficulty changing the color of the button text at the moment it is clicked by the user: In this example I am…
-
1
votes0
answers494
viewsHow to modify the text of a button by pressing it?
I am very new in this field of programming with graphical interfaces and I am with a project with Arduino... The communication part is OK, but I can’t do anything simple like: Change both the color…
-
1
votes2
answers929
viewsChange the color of only one button in Vuejs
I have a styling problem in Vuejs. Through the v-get picked up 3 buttons of the API, so far so good. What I need is that when you click one of the 3 buttons it simply changes the color. When I try…
-
1
votes1
answer126
viewsHow to put a code when you add a commandbutton?
so I don’t really know how to use this, of questions and such. But like, I have a vba sub that when executed creates an object(a button). She’s working on the part of creating it but I need when she…
-
1
votes0
answers74
viewsHow to make a button flash Tkinter
I’m trying to make a screen where the buttons blink at certain frequencies. I couldn’t find any function that answered. Can someone help me, please? Follow the code I’ve made for now: from tkinter…
-
1
votes1
answer171
viewsHow to change an image dynamically when a button is pressed and save the state of that image
I have a problem where I need to alter an image of a imageView when the Button is pressed and when it is pressed again change to the image that was previously. I even managed to do this through the…
-
1
votes1
answer37
viewsReplace Content Collapse
Hello! I’m having a hard time getting the contents replaced by pressing the Collapse button. When I click the content that is already activated continues on the page and what I activated appears…
-
1
votes1
answer2442
viewsAccept cookie button
Although searching about it I still could not solve. I created an acceptance term of cookie that appears in the Home on top of the header. The button when clicking it is closed normally, however,…
-
1
votes1
answer510
viewsHow to change location buttons dynamically using Tkinter?
I know that this code has a lot of repetition and I intend to "dry" it later. For now, I want to understand how to change the position of the buttons in Tkinter dynamically. The solution I initially…
-
1
votes0
answers69
viewsTouchableopacity problem, negative margin and Android - React Native
I have a problem with TouchableOpacity using negative margin so that different TouchableOpacities stay a little on top of each other (I’ll post an image to better understand). These buttons are…
-
1
votes0
answers11
viewsHow to call a new frame after checking an input box entry in Tkinter?
Good morning! I’m making a game where the user needs to enter the passwords he discovers in the course of the game to unlock new screens. However, I’m not getting my password-checker button to work…
-
1
votes1
answer52
viewsPlace buttons side by side CSS
Good evening, I had a question to put the buttons side by side. I put the inline-block too, but I could not solve. .button { width: 10%; height: 50px; border: 0; cursor: pointer; background:#4169E1;…
-
1
votes0
answers20
viewsHow to create a button in a Fragment for android?
I created a button that aims to Random an image. However, the button and image are not appearing on android. The code I’m using is as follows:: ImageView imageView; Random r; Integer[] images = {…
-
1
votes1
answer111
viewsElement overwriting another HTML/CSS
Hello! My problem is this: I made this grid followed by a button. On the desktop it appears correctly, but in mobile the button is superimposed on the grid... Does anyone have any idea what it might…
-
0
votes1
answer530
views<button> does not work in Firefox within a Wordpress theme
I am creating a button inside a Wordpress theme, but the same does not work in Firefox, already in Chrome and IE works without any problem. My button: <button class="faleconosco"><a…
-
0
votes0
answers43
viewsButton in pricing-table Codeigniter
I have a code that shows pricing-table in my View. Each one has a javascript button that when you click on it you need to open another view where you have the details of each pricing-table. How can…