버튼을 눌렀을 때 input에 쓴 값을 알람창으로 띄우기 123456789 function qwe() { var an = document.getElementsByClassName("text")[0].value; alert(an); }Colored by Color Scriptercs 근데 나만그런가 가끔 분명 제대로 쓴거같은데 아무것도 실행 안된다거나 그럴때 있음...특히 document.get~이게 잘못됐다면서ㅇㅇ근데 콘솔창에 쳐보면 값 잘만나옴 뭐지...... 12345678910 $(function() { $("input[type=submit]").click(function() { alert($("input[type=text]").val()); }); })Colored by Color Scripter..