i’m using jquery-imagetool plugin for croping images. My jquery code looks like:
$('div.image img').imagetool({
viewportWidth: 171,
viewportHeight: 267
})
I want to get viewportWidth parameter from css of the div.image element so I need to get the current element (img) and call parent() to it.
can anyone help me?
Use each to process the images individually and you can then get the width of the div.