Hi,
I am newbie to rails.
I use an jquery ajax function to get some json data
and have to render an image according to the result.
say
HTML:
JS:
if (true){
$(’#status’).html(<%=IMAGE1%>);
}
else{
$(’#status’).html(<%=IMAGE2%>);
}
I’ve tried a lot of way but couldn’t come to a solution.
Please help.
Regards,
Vimal Das