随笔分类 - jQuery
摘要:效果如下: Personal Name:* Address:*
阅读全文
摘要:点击Add More按钮页面会自动添加一个输入框和Remove按钮,点击Remove按钮则此行元素将被移除。 Websites you visit daily Name
阅读全文
摘要:serialize() 方法通过序列化表单值,创建 URL 编码文本字符串。 Email: Sex: Country:
阅读全文
摘要:checkbox 的全选与全不选以及获取选择的值。效果: Toggle All Beijing Shanghai Guangzhou Shenzhen
阅读全文
摘要:通过 input button 而不是input submit提交。
阅读全文
摘要:1:在jQuery中使用bind方法进行事件的绑定,bind方法有两个参数,第一个参数是事件的类型例如click,change,keyup,keydown,blur,focus等。第二个参数是一个回调函数(callback function),当事件被触发时会执行这个回调函数。 如果想清除绑定的事件可以使用unbind方法,此方法接收一个事件类型作为参数,$(element).unbind()。 以下是一些通过bind与unbing的方法: 案例:对每个li元素绑定click事件,当点击li标签时,将其背景色变为红色。 Chi...
阅读全文
摘要:效果:(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. ...
阅读全文
摘要:代码片段: The title data-theme="a" data-theme="b" data-theme="c" data-theme="d" data-theme="e" The footer
阅读全文
摘要:效果如下:data-inset="true":为圆角data-filter="true":带着过滤输入框 The title The content One Two One One Two One Two One The footer
阅读全文
摘要:1:dialog-test.html The title The content Open dialog The footer 2:dialog.html Dialog Delete page? OK Cancel
阅读全文