When selecting a value of my select I need the entire select to be disabled as such and only show the value that I select, I have tried in several ways but I have not been able to make it work for me. I also need a button to appear that says activate and when I click it, the select becomes active again.
import React,{useState} from 'react'
function Pruebas() {
const [select, setSelect] = useState();
const elselect = () => {
}
return (
<div>
<form>
<select onChange={ elselect }>
<option value="uno">uno</option>
<option value="uno">dos</option>
</select>
</form>
</div>
)
}
export default Pruebas