1.div 隱藏/顯示

$('#mold-img').hide();
$('#mold-img').show();

2.validation add method

$.validator.addMethod('regex'function (value, element, regexp) {
    var re = new RegExp(regexp);
    return re.test(value);
}, '格式錯誤');

3.check vaildation=true,then...

if ($("#form1").valid() == true) //then ...
創作者介紹
創作者 翼斯待兒。翼Style 的頭像
smartfly

翼斯待兒。翼Style

smartfly 發表在 痞客邦 留言(0) 人氣( 10 )