Answers for "disabled button if not valid jquery"

18

jquery add disabled to button

$("#button").attr("disabled", true);
Posted by: Guest on July-06-2020
1

jquery option not disabled

const opt = $('#select option:not(:disabled)'); // array with all options not disabled
const first = $($('#select option:not(:disabled)')[0]); // first option not disabled
Posted by: Guest on April-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language