By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

Get value of image src by id of img

P: 1
<img id="" value="apple" src="http://example.com/">
get the value apple by console.log using javascript plz anss me thank youo
Sep 3 '14 #1
Share this Question
Share on Google+
1 Reply


Dormilich
Expert Mod 5K+
P: 8,639
you do that through the src property.
Sep 3 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.