Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html button disabled

<button type="button" disabled>This button is disabled</button>
Comment

disable button

// disable button using prop.

$(".button").click(function(){
  // disable button
  $(this).prop('disabled', true);

  // do something

  // below code enables button clicking after two seconds.
  setTimeout(() => {
    // enable button
  	$(this).prop('disabled', false);
  }, 2000);
});
Comment

html disable button

<button disabled>Click me</button>
Comment

button disabled

const textDisabled = text.length === 0 || text.trim().length === 0
Comment

disable button

collector.on('collect', async i => {
    if (i.customId === 'id_1') {
        row.components[0].setDisabled(true) //disables but_1
    }
    if (i.customId === 'id_2') {
        row.components[1].setDisabled(true) //disables but_2
    }
    interaction.editReply({ content: "Click a button", components: [row] });
})
Comment

PREVIOUS NEXT
Code Example
Html :: bootstrap checkbox 
Html :: select all text of input onclick 
Html :: date of birth select box in html 
Html :: html single line comment 
Html :: html layout 
Html :: textarea ckeditor 
Html :: Installation of ionicons 
Html :: delete code html 
Html :: input type password show asterisk 
Html :: input radio 
Html :: form controller in bootstrap 
Html :: iframe render html in angular 
Html :: less css 
Html :: html row 
Html :: template html 
Html :: button md file 
Html :: english to spanish 
Html :: can i write php code in html file 
Html :: tailwind css forms 
Html :: html button with href 
Html :: rick astley never gonna give you up 
Html :: make flex scroll on overflow horizontal 
Html :: viñetas html 
Html :: html textarea auto height to amount of text 
Html :: picture element html 
Html :: Bootstrap 4.6 Starter Template | bootstrap starter template 
Html :: html aside 
Html :: Using new line( ) in string and rendering the same in HTML 
Html :: itextsharp html to pdf 
Html :: insert text html 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =