jQuery实现摸拟alert提示框
页面调用JS:
    $(document).ready(function() {
      $("#delete_without_layer").click(function () {
        $.tConfirm.open({body:'Are you sure to delete?',type:'confirm',onOk:function(){
          alert("yes");
        }});
      });
      $("#delete_with_layer").click(function () {
        $.tConfirm.open({overlay:true,body:'Are you sure to delete?',type:'confirm',onOk:function(){
          alert("yes");
        }});
      });
      $("#information").click(function () {
        $.tConfirm.open({body:'This is confirm box based on fancybox!',type:'info',onOk:function(){
          alert("yes");
        }});
      });
      $("#success").click(function () {
        $.tConfirm.open({body:'Save success!',type:'success',onOk:function(){
          alert("yes");
        }});
      });
      $("#error").click(function () {
        $.tConfirm.open({body:'Some fields are wrong!',type:'error',onOk:function(){
          alert("yes");
        }});
      });   $("#warning").click(function () {
        $.tConfirm.open({body:'Someone login, it's not real user!',type:'warning',onOk:function(){
          alert("yes");
        }});
      });
    });

Figure 1. common confirm

Figure 2. confirm box with layer

Figure 3. error box

Figure 4. success box

Figure 5. warning box
源码下载:
https://github.com/tomlxq/jquery-confirm
jQuery中选择器的基础使用教程
其实选择器就像开罐器一样,会用这个工具的人,自然吃的到甜头,但不会用这个工具的人,不管罐头里面的面筋土豆有多美味,吃不到就是吃不到,
以WordPress为例讲解jQuery美化页面Title的方法
这里选取的例子,便是WordPress中比较有名的美化超链接Title效果,一般的title效果是把鼠标放到a元素中便会显示一个黄底色框,而且是延时显示,这样显
jQuery插件formValidator实现表单验证
本文实例为大家分享了formValidator实现表单验证的具体代码,供大家参考,具体内容如下测试效果:所需的库文件:实现代码:%@pagelanguage="java"contentType="
 
 