728x90 jquery5 select, input 태그 이름 배열 [] 로 만들 경우 값 가져오기 위와같이 배열로 생성된 input 태그의 값을 jquery로 가져오고 싶을 경우 아래와 같이 코딩하면 된다.$('input[name="content[]"]')[0].value //값가져오기$('input[name="content[]"]')[0].value = "1"; //값 넣기select 태그도 동일하게 처리할 수 있다$('select[name="content[]"]')[0].value //값가져오기$('select[name="content[]"]')[0].value = "1"; //값 넣기 2024. 8. 27. select, input 태그 이름 배열 [] 로 만들 경우 값 가져오기 위와같이 생성된 input 의 값 가져오기는 아래와 같이 처리$('input[name="content[]"]')[0].value //값가져오기$('input[name="content[]"]')[0].value = "1"; //값 넣기select 태그도 동일하게 처리할 수 있다$('select[name="content[]"]')[0].value //값가져오기$('select[name="content[]"]')[0].value = "1"; //값 넣기 2024. 8. 12. iframe 클릭 이벤트 처리 - jquery iframe 안을 클릭했을 때 이벤트 처리방법https://tv.naver.com/embed/25698159?autoPlay=true' frameborder='no' scrolling='no' marginwidth='0' marginheight='0' WIDTH='544' HEIGHT='306' allow='autoplay' allowfullscreen > 2024. 8. 7. SLICK 슬라이드 페이징 넣기 SLICK 슬라이드에서 원하는 부분에 1/5 와 같은 페이징을 넣는 방법이다.1 / 3 test1 test2 test3 $('.main_news_sld').slick({ infinite: false, speed: 300, initialSlide : 0, slidesToShow: 1, slidesToScroll: 1, vertical:true, }); $('.main_news_sld').on('init reInit afterChange', function(event, slick, currentSlide, nextSlide){ var i = (currentSlide ? currentSlide : 0) + 1; $('.sPage1').html(""+i+" / "+slick.slideCount+".. 2024. 8. 6. *.js 파일 저장 및 사용하기 - django 사용하고자 하는 js 파일을 static 폴더에 저장한다. 그리고 아래와 같이 소스에 넣는다 2024. 7. 4. 이전 1 다음