Check some of the examples regarding using “this” vs $("#tag") as the first argument of anvil.call:
Example 1
Example 2