I have added an onClick event to anchor tag, when the user clicks on it. I have to get the inner html without using the id attribute.Following is the code what i am using. Please help me to achieve this.
function bttnpressed()
{
alert('inside bttnpressed');
}
<a onclick="bttnpressed()">name1</a>
You can use innerHTML property. You need to pass the source of event to
clickevent which could be passed usingthis.