i want to assign src attribute to alt attribute with removing extension .png and removing src attribute.
string1='<img src="a.png"> hi '
to :
string2='<img alt="a"> hi '
how to do this?
what is code?
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.
However, there is probably a cleaner way to accomplish what you are trying to do using DOM.