Hello,
You can obtain value of class attribute using
.attr('class')
method. Similarly you can use
.attr('src')
to obtain the value of src attribute of an image. The text from the paragraph can be read using
.text()
.
e.g.
$('#paraId').text();
$('#myImage').attr('src');
$('#myDiv').attr('class');