Commit 10d3f1e6 by Zen-PC\Zen

Zen : จัดโค้ด

parent 27609774
......@@ -67,7 +67,8 @@ use Cake\I18n\Time;
<em>* </em>
<?php echo $this->Form->input('UserPersonals.firstname_th', [
'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,
'minlength' => '4',
'placeholder' => 'firstname'
......@@ -81,7 +82,8 @@ use Cake\I18n\Time;
<em>* </em>
<?php echo $this->Form->input('UserPersonals.lastname_th', [
'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,
'minlength' => '4',
'placeholder' => 'lastname'
......@@ -157,7 +159,8 @@ use Cake\I18n\Time;
<?php echo $this->Form->input('UserPersonals.moblie_no', [
'class' => 'form-control-reg border-bottom-from label-text-sub required digits',
'value' => $responseUserPersonal['moblie_no'],
'id' => 'moblieNo', 'type' => 'text',
'id' => 'moblieNo',
'type' => 'text',
'label' => false,
'maxlength' => '10',
'minlength' => '10',
......@@ -652,14 +655,14 @@ use Cake\I18n\Time;
});
});
$("#moblieNo").on('change',function(){
var elem = document.getElementById('moblieNo').value;
// console.log(elem);
if(!elem.match(/^([A-Za-zก-๙])+$/i)){
alert("<?php echo __('only numbers'); ?>");
return false;
}
});
// $("#moblieNo").on('change',function(){
// var elem = document.getElementById('moblieNo').value;
// // console.log(elem);
// if(!elem.match(/^([A-Za-zก-๙])+$/i)){
// alert("<?php echo __('only numbers'); ?>");
// return false;
// }
// });
//==================================================
// 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