[Solved] How to select all images using jquery and give them an width?


You can use this

$(document).ready(function () {
    $('div.body img').css("width","200px");
});

or this

$(document).ready(function () {
    $('.body').each(function () {
        $('img').css("width","200px");
    })
});

or you can use css like this :

.body img{
  width : 200px;
}

or

img{
  width : 200px;
}

solved How to select all images using jquery and give them an width?