|
|
|
สอบถามเรื่อง event ปุ่ม ครับ ไม่ทราบว่าต้องทำอย่างไร |
|
|
|
|
|
|
|
Example
Code (PHP)
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js">
</script>
<script>
$(document).ready(function(){
$('input[type=text]').keyup(function(){
var num=0;
var txtcount=0;
$('input[type=text]').each(function(){
txtcount++;
if($(this).val().length != 0){
num++;
}
});
if(num == txtcount){
$('input[type=submit]').removeAttr('disabled');
}else{
$('input[type=submit]').attr('disabled','disabled');
}
});
});
</script>
</head>
<body>
<input type="text">
<input type="text">
<input type="submit" disabled>
</body>
</html>
|
|
|
|
|
Date :
2018-02-21 17:50:59 |
By :
dudesaranyu |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณครับ
|
|
|
|
|
Date :
2018-02-21 18:31:47 |
By :
kidscirenser |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|