上一页 1 ··· 3 4 5 6 7
摘要: 在jQuery中,textarea标签的的用法是:<textarea id="" name="">要输入的文本</textarea>,如果要把PHP传过来的数据在标签显示需要用到HTML方法。 <textarea id="txt1" name="Text" cols=40 rows=8> </tex 阅读全文
posted @ 2016-05-18 08:41 逆流的致爷 阅读(523) 评论(0) 推荐(0) 编辑
摘要: <script> $("#button2").click(function(){ var submit=""; $(".check:checked").each(function(){ //重点是这句话:直接用被选中的多选按钮遍历,我原来用了好多类似的方法,就是卡壳在这里。 submit+=$(th 阅读全文
posted @ 2016-05-12 13:50 逆流的致爷 阅读(122) 评论(0) 推荐(0) 编辑
摘要: <script> $("#btn").click(function(){ $.post("denglu.php",{"username":$("#text1").val(),"userpass":$("#text2").val()},function(result){ //利用AJAX将前端ID为t 阅读全文
posted @ 2016-05-10 12:51 逆流的致爷 阅读(1708) 评论(0) 推荐(0) 编辑
摘要: <body> <button class="btn">按钮</button> <button class="btn">按钮</button> <button class="btn">按钮</button> <button class="btn">按钮</button> <button class=" 阅读全文
posted @ 2016-05-09 14:11 逆流的致爷 阅读(103) 评论(0) 推荐(0) 编辑
摘要: <button id="btn">按钮</button>//首先创建一个元素 <script> $.fn.extend({ //$.fn.extend是用来创造插件的函数 hello:function(){ var val=$(this).html(); alert(val); }, bb:func 阅读全文
posted @ 2016-05-09 11:32 逆流的致爷 阅读(119) 评论(0) 推荐(0) 编辑
摘要: <input type="text" id="txt1" cols="80" rows="3" /> //首先建立text,用来显示后端解析好的数据 <center><input type="button" id="button1" value="查询" /></center> //建立一个按钮 用 阅读全文
posted @ 2016-05-07 16:28 逆流的致爷 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 在Jquery中的ajax的数据格式: $.post("url(用到的那个PHP)",{(所要传递的参数,如果是多个参数要用逗号分隔开)},回调函数function(){ ......; }) 具体实例: (HTML文件) <body> <input type="button" id="btn" v 阅读全文
posted @ 2016-05-07 10:45 逆流的致爷 阅读(129) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2016-05-07 09:36 逆流的致爷 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7