Demo entry 6783342

de

   

Submitted by dd on Feb 09, 2019 at 06:12
Language: JavaScript. Code size: 352 Bytes.

function save_img(){
	var i_list=[];
	var t_list=[];
	$('.img-responsive').each(function(){
		i_list.push($(this).attr('src'));
	})
	$('.img-title').each(function(){
		var s='';
		if($(this).val()==''){
			s=$(this).attr('placeholder');
		}
		else{
			s=$(this).val();
		}
		t_list.push(s);
	})
	
	alert(i_list);
	alert(t_list);
	
}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).