How to get innerHTML for a particular html element through its class in jQuery?

html, innerhtml, jquery

Solution

$('.a')[0].innerHTML;
$('.a')[1].innerHTML;

FIDDLE

Problem

I have HTML code like this: ``` <div class="a">html value 1</div> <div class="a">html value 2</div> ``` How can I access `html value 1` and `html value 2` using jquery?

Original source