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;
});
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 |