I have an input field which when the enter key is pressed (as there is no submit field) I would like javascript to add the @ character infront of each keyword when the form is submitted.
For example:
The text would be entered as...
home, personal, call
But the value that is submitted would be...
@home, @personal, @call
So far I have:
$("#inputfield").keydown(function(e){ if (e.keyCode == 13) { $("#inputfield") // Not sure what to add next .submit(); }