简体   繁体   中英

why is this simple fiddle not working

This fiddle is not working-

http://jsfiddle.net/RcfNL/1/

I just want to add a text field in a div onchange in drop down . What's the problem?

您也可以交替变化的选项Frameworks and ExtensionsonLoad选项,以便等待整个DOM是ready.Check你拨弄

You need to wrap your code in a document ready function .

$(document).ready(function() {
   ...
});

JSFiddle demo .

A page can't be manipulated safely until the document is "ready." jQuery detects this state of readiness for you. Code included inside $( document ).ready() will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM