jQueryとprototype.jsの競合(コンフリクト)


1.prototype.js→jQueryの順番で記述する。
2.jquery.jsの直下にjQuery.noConflict(); を使用して競合問題の解決する。

<textarea rows=10 cols=54 readonly>
<script type="text/javascript">
<!-- 
jQuery.noConflict();
-->
</script>
</textarea>

3.使用するjQueryのスクリプトの「$()」を「jQuery()」に変更する。