에서 명명 된 요소를 선택 :나는 다음과 같은 jQuery를 실행하고 입력 배열
<input type="text" value="hello" name="multy['helloworld']" />
<script type="text/javascript">
$(document).ready(function(){
var hello = 'helloworld';
alert($('input[name="multy['+hello+']"]').val());
})
</script>
당신이 명명 된 배열의 키 요소를 선택할 수 없습니다 보 겠지만. 이 문제가 해결 되었습니까?
ta.
안토니
고맙습니다. 나는 명성이 없지만 답으로 표시 할 것입니다. – Ukuser32
@ Ukuser32 환영합니다! – VisioN
내 다른 코드에서는이 작업을 수행 할 수 없지만 select [name = "timeSlots [ '+ name +']"] – Ukuser32