<script><br>$(document).ready(function(){<br> $(".taDetail").bind("click",showNum)<br> .bind("keyup", showNum)<br> .bind("blur", function(){$("#divShowNum").hide();});<br>});<br>var showNum = function(){<br> var d = $(this);<br> var pos = d.offset();<br> var t = pos.top this.offsetHeight - 22; // 弹take框的下边位置<br> var l = pos.left this.offsetWidth - 60; // 弹出框的右边位置<br> var num = this.value.length;<br> $("#changeNum").html(num);<br> $("#divShowNum").css({ " top": t, "left": l }).show();<br>}<br></script>
/140