摘要: 设置或返回元素的属性值: $("#imgId").attr('src'); // 获取元素的属性值 $("#imgId").attr('src',path); // 设置元素的属性值 $("#imgId").getAttribute(“src”) ; // getAttribute() 方法返回指定 阅读全文
posted @ 2015-07-30 14:22 王宇walkOn 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.cnblogs.com/huanhuan86/archive/2012/06/13/2548071.html 获取元素的value值: /*获得TEXT.AREATEXT的值*/ var textval = $("#text_id").attr("value"); //或 阅读全文
posted @ 2015-07-30 13:58 王宇walkOn 阅读(598) 评论(0) 推荐(0) 编辑