"SE1505_CE150327_LA MINH KHOI"
Bootstrap 4.1.1 Snippet by minhkhoi2411

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <form class="form-horizontal"> <fieldset> <!-- Form Name --> <legend>SE1505,CE150327,LA MINH KHOI</legend> <div class="jumbotron text-center" style="margin-left:100px"> <h1>Send Feedback</h1> </div> <!--Phone--> <div class="form-group"> <label class="col-md-4 control-label" for="phone">Phone</label> <div class="col-md-8"> <input id="phone" name="phone" type="text" placeholder="Please enter your phone here" class="form-control input-md" required=""> </div> </div> <!--Feedback Type--> <div class="mb-3"> <label class="form-label" for="newField5">Feedback Type</label> <select class="form-select" id="newField5" aria-label="New Field 5"> <option value="1">Academic Service</option> <option value="2">IT Service</option> <option value="3">Student Service</option> <option value="4">Food Service</option> <option value="5">Training Activities</option> </select> </div> <!----> <div class="form-group"> <label class="col-md-4 control-label" for="feedback">Feedback</label> <div class="col-md-4"> <textarea class="form-control" id="feedback" name="feedback"></textarea> </div> </div> <!-- Button --> <div class="form-group"> <label class="col-md-4 control-label" for="singlebutton"></label> <div class="col-md-4"> <button id="singlebutton" name="singlebutton" class="btn btn-primary">Send Feedback</button> </div> </div> </fieldset> </form>
function checkPhoneNumber() { var flag = false; var phone = $('phone').val().trim(); phone = phone.replace('(+84)', '0'); phone = phone.replace('+84', '0'); phone = phone.replace('0084', '0'); phone = phone.replace(/ /g, ''); if (phone !== '') { var firstNumber = phone.substring(0, 2); if ((firstNumber == '09' || firstNumber == '08') && phone.length == 10) { if (phone.match(/^\d{10}/)) { flag = true; } } } return flag; }

Related: See More


Questions / Comments: