0
나는 CURL을 통해 특정 웹 사이트의 전체 이미지를 얻고 PHP 루프 안에 넣는 PHP 코드를 가지고 있습니다. I가 버튼을 클릭하면jQuery에서 PHP 배열의 값을 얻는 방법
는 는 다음prev
/
next
버튼 표시되는 현재 화상과 배열을 스캔 할 수있는 사용자에 표시 될
내 $('$current_image').val(1);
$.post("curl_fetch.php?url="+ extracted_url, {
}, function(response){
$('#loader').html($(response).fadeIn('slow'));
$('#current_image').val(1); // insert loop value in .val()
난 싶어
$z=1;
for ($i=0;$i<=sizeof($images_array);$i++) {
....<img src = "$images_array[$i]" id="$z"> ..
$z++;
}
배열의 값, 지금하지 루프 값
$(function() {
$(document).on('click','.submit', function() {
var img = $('#current_image').val(); //get the array value, not the loop value
alert(img);
});});
, 내가 제대로 내의 배열 값을 얻는 방법 Jquery의