in Education by
I'm using Zend Framework and I have a form input button with a style that I defined. I need to replace the main data-theme once the button gets pressed. I have in mind something like this: $this->form->go->setAttrib("onclick", "this.data-theme='new_theme'"); .. but is not working. any ideas?? thanks! JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
It depends if you mean 'on press' or 'after'; if on press, then the :active psuedoclass (as Simone states) is correct; if you want the different style to be persistent after you've clicked the button, then the :visited psuedoclass should work (although having said this, I'm not sure if :visited is only valid for a href links; if so, you could style a link to look like a button, which is fairly common)

Related questions

0 votes
    I'm using Zend Framework and I have a form input button with a style that I defined. I need to ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 20, 2022 in Education by JackTerrance
0 votes
    Click on the______ button to change the selected text to dark thick font style Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    I need to open application when power and volume+ buttons long pressed. Does its possible to detect power ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 17, 2022 in Education by JackTerrance
0 votes
    Which of these events is generated when a button is pressed? (a) ActionEvent (b) KeyEvent (c) WindowEvent (d ... Event Handling of Java Select the correct answer from above options...
asked Feb 24, 2022 in Education by JackTerrance
0 votes
    If the cursor is placed at the end of the file , then___ button is pressed to delete the text. 1. delete 2. back space 3. enter 4. tab Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Which of these events is generated when a button is pressed? (a) ActionEvent (b) KeyEvent (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    I have a polygon feature in OpenLayers 5. It has some random id which I need to show at the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 26, 2022 in Education by JackTerrance
0 votes
    As I tried to add a video on my top-wrapper previously. (Thank you so much for those who leave ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 9, 2022 in Education by JackTerrance
0 votes
    I've extracted certain elements from a HTML page with beautifulsoup and want to extract the according CSS ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 3, 2022 in Education by JackTerrance
0 votes
    Nikunj has written the following style rule in the CSS file. H1(font-style=oblique; ) Is anything wrong with the ... yes, correct it. Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    You can create your own style by clicking on the __________ button located at the bottom of style pane. * a.style ... d.none of these Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    you cannot change the style of the smart art objects is true or false Select the correct answer from above options...
asked Dec 15, 2021 in Education by JackTerrance
0 votes
    The—- dialog box is used to change the style of line stroke. Select the correct answer from above options...
asked Dec 14, 2021 in Education by JackTerrance
0 votes
    Drop Cap feature is used to change the style of the …………. character of the ……………. word of the paragraph Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
...