I'm using jquery get the src of images to display:none when src="". It looks like that,
<div class="parent">
<img src="images_path/or nothing" class="Images"/>
<div class="content">
</div>
</div>
class content float left to fit with images width in parent div. Now I want detect image source when it empty I changed class content.width to fit with parent div by its selft. My jquery code like that
var CustomizeImage = $(".CategoryNews-left").find(".Images").attr("src");
alert(CustomizeImage);
if(CustomizeImage == "")
{ alert("ko co gi");
$(".CategoryNews-left").find(".Images").css("display","none");
$(".CategoryNews-left").find(".news").css("width","320px");
$(".CategoryNews-left").find(".Content").css("width","320px");
}
But class content does not get new width even src=empty, someone help me to fix this truoble, thank alot of read my note!!!