Try reading the documentation
http://api.jquery.com/trigger/[
^]
1) The selector is incorrect. It should be $('.btnSend') or $('#btnSend') for selecting a class or element identifier, or some form of this.
2) The trigger function should be trigger('click') if you want to trigger a button click event.