jquery对象转换成DOM对象的方法:
1、可以使用索引
2、get()方法
<span style="white-space:pre"> </span><input type="text" id="a" value="11">
<script type="text/javascript">
var p=$('#a');
alert(p[0].value);
alert(p.get(0).value);
</script>
</pre><pre name="code" class="html"><strong>DOM对象转换成jquery对象:</strong>
只需要用$进行包装即可
<span style="white-space:pre"> </span><script type="text/javascript">
<span style="white-space:pre"> </span>var input =document.getElementById('a');
<span style="white-space:pre"> </span>alert($(input).val());
<span style="white-space:pre"> </span></script>
</pre><pre name="code" class="html"><strong>如何解决jquery与其他js语言冲突的问题:</strong>
<pre name="code" class="html"><span style="white-space:pre"> </span>jQery.noConflict()
在jquery 语句中,上用jQuery代替$符号