先引入jQuery+jQuery Validation.js
<div class="edit_phone1 tis_edit">
<form id="cell" class="form-horizontal" method="get" action="">
<div class="select_div new-phone" style="margin-bottom: 0;">
<span style="width:86px;">新手机号码:</span>
<input type="text" id="new_phone" name="new_phone" autofocus="autofocus">
</div>
</form>
</div>
$(function(){
$("#cell").validate({
rules: {
new_phone : {
required : true,
isMobile : true
},