javascript - Make a button unclickable after one click -


i'm trying create button becomes deactivated after first click; have no clue how it. have now:

<input type="button" id="btnsearch" value="search" onclick="fuction();" /> 

this button not submit form. me? i'm totally new this. i've tried following answer in other threads got lost.

not preferred way of course, result after.

function fuction() {   document.getelementbyid('btnsearch').disabled = 'disabled'; } 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -