随笔分类 -  jQuery

摘要:效果如下: Personal Name:* Address:* 阅读全文
posted @ 2013-10-26 08:12 yshy 阅读(2436) 评论(0) 推荐(0) 编辑
摘要:点击Add More按钮页面会自动添加一个输入框和Remove按钮,点击Remove按钮则此行元素将被移除。 Websites you visit daily Name 阅读全文
posted @ 2013-10-26 07:52 yshy 阅读(861) 评论(0) 推荐(0) 编辑
摘要:serialize() 方法通过序列化表单值,创建 URL 编码文本字符串。 Email: Sex: Country: 阅读全文
posted @ 2013-10-25 17:24 yshy 阅读(406) 评论(0) 推荐(0) 编辑
摘要:checkbox 的全选与全不选以及获取选择的值。效果: Toggle All Beijing Shanghai Guangzhou Shenzhen 阅读全文
posted @ 2013-10-25 16:32 yshy 阅读(411) 评论(0) 推荐(0) 编辑
摘要:通过 input button 而不是input submit提交。 阅读全文
posted @ 2013-10-25 16:00 yshy 阅读(588) 评论(0) 推荐(0) 编辑
摘要:1:在jQuery中使用bind方法进行事件的绑定,bind方法有两个参数,第一个参数是事件的类型例如click,change,keyup,keydown,blur,focus等。第二个参数是一个回调函数(callback function),当事件被触发时会执行这个回调函数。 如果想清除绑定的事件可以使用unbind方法,此方法接收一个事件类型作为参数,$(element).unbind()。 以下是一些通过bind与unbing的方法: 案例:对每个li元素绑定click事件,当点击li标签时,将其背景色变为红色。 Chi... 阅读全文
posted @ 2013-10-25 15:55 yshy 阅读(1877) 评论(0) 推荐(0) 编辑
摘要:效果:(1):Tooltip(2):Menu(3):NestedMenu(4):Login------源码: The title The content Tooltip Menu Nested Menu Login Here is a tiny popup being used like a tooltip. ... 阅读全文
posted @ 2013-10-21 14:15 yshy 阅读(3055) 评论(0) 推荐(0) 编辑
摘要:代码片段: The title data-theme="a" data-theme="b" data-theme="c" data-theme="d" data-theme="e" The footer 阅读全文
posted @ 2013-10-21 13:19 yshy 阅读(4157) 评论(0) 推荐(0) 编辑
摘要:效果如下:data-inset="true":为圆角data-filter="true":带着过滤输入框 The title The content One Two One One Two One Two One The footer 阅读全文
posted @ 2013-10-21 13:14 yshy 阅读(277) 评论(0) 推荐(0) 编辑
摘要:1:dialog-test.html The title The content Open dialog The footer 2:dialog.html Dialog Delete page? OK Cancel 阅读全文
posted @ 2013-10-21 13:01 yshy 阅读(1951) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示