I am working on Reactjs/nextjs, And i want to append/remove "disable" attribute,how can i do this ? Here is my current code
const handleSubmit = (e) => {
e.preventDefault();
//Should append "disable" on submit button
axios
.post("xxxxxxxxxxxxxxxxxxxxxxxxxxx",data
)
.then(function (response) {
//Should remove "disable" after response
}
});
}
<form className="row" id="home_contact_form" onSubmit={handleSubmit}>
<input type="submit" value="send" className="sendbtn" id="sendbtn" />
</form>