I cannot figure out how to append text to a field using javascript. My field name is inputFirst and I want append @google.com on a value change event. I cannot figure it out. Any ideas?
I cannot figure out how to append text to a field using javascript. My field name is inputFirst and I want append @google.com on a value change event. I cannot figure it out. Any ideas?
var input_val = tiggzi('name-of-input').val();
tiggzi('name-of-input').val(input_val + "@google.com");
try this
That gets me closer. This is what i have right now...
var input_val = Tiggzi('inputFirst');
Tiggzi('inputFirst').val(input_val+"@google.com");
and i get "[object Object]@google.com"
Any ideas?
I forgot the .val on the first line. it works! Thanks so much for your help!