I have 2 spans
<span contentEditable=true class="editspan"></span>
<span class="pencilspan glyphicon glyphicon-pencil pull-right"></span>
and a js function
$(document).on('click', '.pencilspan', function () {
console.log("clicked pencil");
});
What I want is when I click on pencilspan the contentEditable area of editspan should get highlighted(input box should be visible). How can I achieve this?