I have multiple divs added dynamically. The class name is given as "result_"+id where the id is from database table.
<div class="result_137">Gaurab Dahal</div>
<div class="result_138">saurab dahal</div>
How can I write the click event so that it can adddress the div on which it is clicked.
for example I can write the css like below to address all the divs that has classname starting with the string "result".
div[class^="result"]{
padding:5px;
width:490px;
background: rgba(204,204,204,0.5);
font: 12px arial, verdana, sans-serif;
}