Commit 10d3f1e6 by Zen-PC\Zen

Zen : จัดโค้ด

parent 27609774
...@@ -67,7 +67,8 @@ use Cake\I18n\Time; ...@@ -67,7 +67,8 @@ use Cake\I18n\Time;
<em>* </em> <em>* </em>
<?php echo $this->Form->input('UserPersonals.firstname_th', [ <?php echo $this->Form->input('UserPersonals.firstname_th', [
'class' => 'form-control-reg border-bottom-from label-text-sub required', 'class' => 'form-control-reg border-bottom-from label-text-sub required',
'value' => $responseUserPersonal['firstname_th'], 'id' => 'firstname_th', 'value' => $responseUserPersonal['firstname_th'],
'id' => 'firstname_th',
'type' => 'text', 'label' => false, 'type' => 'text', 'label' => false,
'minlength' => '4', 'minlength' => '4',
'placeholder' => 'firstname' 'placeholder' => 'firstname'
...@@ -81,7 +82,8 @@ use Cake\I18n\Time; ...@@ -81,7 +82,8 @@ use Cake\I18n\Time;
<em>* </em> <em>* </em>
<?php echo $this->Form->input('UserPersonals.lastname_th', [ <?php echo $this->Form->input('UserPersonals.lastname_th', [
'class' => 'form-control-reg border-bottom-from label-text-sub required', 'class' => 'form-control-reg border-bottom-from label-text-sub required',
'value' => $responseUserPersonal['lastname_th'], 'id' => 'lastname_th', 'value' => $responseUserPersonal['lastname_th'],
'id' => 'lastname_th',
'type' => 'text', 'label' => false, 'type' => 'text', 'label' => false,
'minlength' => '4', 'minlength' => '4',
'placeholder' => 'lastname' 'placeholder' => 'lastname'
...@@ -157,7 +159,8 @@ use Cake\I18n\Time; ...@@ -157,7 +159,8 @@ use Cake\I18n\Time;
<?php echo $this->Form->input('UserPersonals.moblie_no', [ <?php echo $this->Form->input('UserPersonals.moblie_no', [
'class' => 'form-control-reg border-bottom-from label-text-sub required digits', 'class' => 'form-control-reg border-bottom-from label-text-sub required digits',
'value' => $responseUserPersonal['moblie_no'], 'value' => $responseUserPersonal['moblie_no'],
'id' => 'moblieNo', 'type' => 'text', 'id' => 'moblieNo',
'type' => 'text',
'label' => false, 'label' => false,
'maxlength' => '10', 'maxlength' => '10',
'minlength' => '10', 'minlength' => '10',
...@@ -652,14 +655,14 @@ use Cake\I18n\Time; ...@@ -652,14 +655,14 @@ use Cake\I18n\Time;
}); });
}); });
$("#moblieNo").on('change',function(){ // $("#moblieNo").on('change',function(){
var elem = document.getElementById('moblieNo').value; // var elem = document.getElementById('moblieNo').value;
// console.log(elem); // // console.log(elem);
if(!elem.match(/^([A-Za-zก-๙])+$/i)){ // if(!elem.match(/^([A-Za-zก-๙])+$/i)){
alert("<?php echo __('only numbers'); ?>"); // alert("<?php echo __('only numbers'); ?>");
return false; // return false;
} // }
}); // });
//================================================== //==================================================
// CHANGE Province According Country // CHANGE Province According Country
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment