日期:2014-05-16  浏览次数:20443 次

JQuery 获得div标签内的值
[code=HTML][/code]
如 <div id="aaa">123</div> 这样的DIV 我想在jquery 里面获取到123 ,求教怎么做。?

------解决方案--------------------
$('#aaa').html()
------解决方案--------------------
$("#aaa").html();
------解决方案--------------------
$('#aaa').html(parseInt($('#aaa').html())+1)

------解决方案--------------------
探讨

引用:
$('#aaa').html(parseInt($('#aaa').html())+1)

我吧核心代码发一下吧

<script language="javascript">
function fun_vote(){
$('#aaa').html(parseInt($('#aaa').html())+1)

}

</script>
……