What is required:
- I simply need to display a div.
Code snippet:
<a href="javascript:void(0);" id="viewdetail" onclick="$(this).show();" style="color:green">View Detail
<div class="speakers dis-non">
</div>
</a>
After changing the code to
onclick="$('.speakers').show();"
, it works correctly.Issue encountered:
onclick="$(this).show()"
The div does not show up.
When a user clicks on a specific anchor element, the data related to that link should be displayed.