I have an li as below
<li class="active">
<a href="#" onclick="editCategory(this)" class="active" value="14-client" id=""> qqqq
<i class="glyphicon glyphicon-trash pull-right" style="display:none"></i></a>
</li>
It has an i tag which is hidden at beginning <i class="glyphicon glyphicon-trash pull-right" style="display:none"></i>
I want to show this i tag only when mouse is clicked on the anchor tag so I wrote onclick="editCategory(this)"
and this is my function
function editCategory(id)
{
alert('category');
$(this).children().show();
}
so when I click on the anchor tag then alert works alert('category')
but the i tag is not shown.
Can anybody please point out the mistake I have done