Thanks for your suggestion but it wont work because I wont necessarily know what element is being rendered. If there were a "this" that would return the html element, that would be ideal.
If its the data bound to the template just access that and don’t deal with the dom.
Otherwise what @shock said. Template helpers are bound to the whole template and not to the one tag they are used in so a this is out of the question. Which is why selecting it using Shock’s example is useful.
The selector can get smaller and smaller if you’re templates are compartmentalized enough too.
Perhaps elaborating on your overall goal at least at one level of the problem higher might help us to help you out?
@href
This question was more of a “can I even do this” type of deal. I was just curious if accessing the HTML data from the helper was possible, I don’t have any working code to show.