상세 컨텐츠

본문 제목

how to button property disable change in javascript or jqury

개발생활/JavaScript

by 한국인맛집 2018. 12. 27. 22:45

본문

반응형

myform.php 

<script src="asset/myscript.js"></script>

<form action="sending.php" method="POST" enctype="multipart/form-data">

     <h2> Click This! </h2>
     <input type="file" accept="jpg">

     <input id="submit-btn" type="submit" value="submit">


</form>



myscript.js

// myjs.js File
$(document).ready(function(){


/* Here this ! */
   document.getElementById('submit-btn').disabled= true;

/* you need change false */

document.getElementById('submit-btn').disabled= false;


});



반응형

'개발생활 > JavaScript' 카테고리의 다른 글

how to get Button id in JavaScript ?  (309) 2019.01.03
how to style property change in js ?  (0) 2019.01.03
how to use Iframe / change src in iframe?  (0) 2019.01.03
javascript current time  (0) 2018.12.27
youtube auto play Code  (0) 2018.10.26
Java Script Basic (java_tutorial)  (0) 2017.12.29

관련글 더보기