Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!
Login
Remember
Register
References
Add reference
Ranks
Add reference
jQuery - get img src from element with .attr
0
votes
26
views
added
Dec 16, 2020
in
jQuery
by
lcjr
Second Warrant Officer
(
3,820
points)
var imgDesc = $('.qa-q-view-content img').attr('src'); console.log(imgDesc);
attr
html
img
Please
log in
or
register
to response this reference.
Related reference
jQuery - condition for .attr src
JS - Get img src with getElementById to id attribute
jQuery - to normalize HTML .attr
jQuery: Get img element inside div using child selector
jQuery .each - get all objects in one element
jQuery - get the source of an element
jQuery - maxlength value with .attr
jQuery .attr() method
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
All categories
API
(21)
jQuery
(164)
Javascript
(85)
React
(39)
Vue
(25)
Next JS
(8)
JSX
(9)
ES6
(9)
Regex
(6)
PHP
(58)
mySQL
(9)
Drupal
(15)
SCSS
(21)
CSS
(94)
Bootstrap
(22)
Repository
(28)
Software & tools
(36)
Google tools
(21)
Plugins
(13)
Gulp
(9)
NPM
(8)
Node JS
(7)
CMS
(9)
Command-line
(6)
Database
(2)
Domain & hosting
(15)
Elixir
(1)
HTML
(15)
Mobile application
(1)
Networking
(4)
Python
(0)
Server issues
(5)
UI
(3)
VM & Remote desktop
(2)
VSCode
(5)
Webpack
(0)
Windows
(7)
XSLT
(5)
Angular JS
(0)
General
(875)
...