i want to insert image on page using javascript function
//JS
$('#fff').html('<img src="../images/pic.jpeg">');
when i write the url as above …nothing loaded.
How can i write correct URL ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the js code is in your view template, then you do do
else if it is in a separate js file, you need to use the absolute path for it.