Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jQueryの機能を実装するために、同じサンプルフォームjquery Webサイトをコピーしました。change()head 部分で をカット アンド ペーストした場合<script>..</script>、select 値を変更しても関数はまったく呼び出されません。このフラグメントをselectの下に書く必要がある理由はありますか? これ<script>は、ヘッダーにパーツを配置したフィドルです。デフォルトのコードはこれです。
change()
<script>..</script>
<script>
関数を(頭の中にある間に)次のように囲んでみてください。
$(document).ready(function(){ //Your code here });