Answer the question
In order to leave comments, you need to log in
jQuery. Part of an image?
Good afternoon.
Can you please tell me how to get part of the image using jquery
and display it on the page as a separate element?
Answer the question
In order to leave comments, you need to log in
var img = $('img.your').clone();
var block = $('<div/>, {
'style': 'display:inline-block;width:40px;height:40px;overflow:hidden;'
}).append(img);
$('body').append(block);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question