I want to replace <a href="123" .......>text</a> with <video src="123"..... />
How can i do this with jquery/javascript?
I want to replace <a href=123 …….>text</a> with <video src=123….. /> How can i
Share
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.
Or I assume you want to replace the a tags after clicking?
NOTE: I replace the ‘video’ tag with div, just for making it easier for you to see the change.
Here is the example:
http://jsfiddle.net/a9xHS/5/
Or if you want to replace all tags, maybe you can:
http://jsfiddle.net/A9R3L/1/