Rails 3.1.3
This should be a basic question but it does not work for me, so I need
some help.
I would like to insert an image with jQuery after loading the page is
done.
More specifically,
$('#combine').click(function () {
$(’#tempimage’).html(’’);
});
this way. It does not work. I understand that the problem is the PATH.
The image is saved in “app/assets/images”.
$('#combine').click(function () {
$(’#tempimage’).html(’<%= image_tag ("/images/arrow_close.png") %>’);
});
this does not work either.
How can I do it?
Thanks in advance.
soichi