
jquery
xianyongonly
这个作者很懒,什么都没留下…
展开
-
jquery 删除option
删除标签select下不不要的option(根据value)[code="java"]var status = ['-1','4','5','7','8','9'];$("#status").find("option").each(function(){ if($.inArray($(this).val(), status)==-1){ //$("#status o...原创 2013-05-09 12:14:50 · 747 阅读 · 0 评论 -
jquery.valid()总是返回true的解决方法
昨天做表单验证,就去网上找了jquery的验证。测试时发现不管怎么样,valid()总是返回true。郁闷中。。。今天去网上找了下原因Why does the JQuery valid() method always return True?[code="java"]其中有个回答很好的解决了我的问题The rules take form input ...原创 2013-06-05 10:04:06 · 3100 阅读 · 0 评论 -
jquery zclip插件
先来个简单的例子[code="html"]Copythis seems awesome[/code][code="jquery"]$(document).ready(function(){ $('a#copy').zclip({ path:'http://www.steamdev.com/zclip/js/ZeroClipbo...原创 2013-06-05 14:36:50 · 439 阅读 · 0 评论