Page 1 of 1

Change placeholder

Posted: Tue Sep 09, 2014 1:04 pm
by Adrian Stoch

Quick simple request please:
Can you advise on how to change placeholder of a text area programmatically.


Change placeholder

Posted: Tue Sep 09, 2014 2:47 pm
by Kateryna Grynko

Hi Adrian,

Please try the following code:preApperyio("mobiletextarea_X").attr("placeholder", "Some text");/preWhere mobiletextarea_X is a textarea name and Some text is any text you need.


Change placeholder

Posted: Tue Sep 09, 2014 7:33 pm
by Adrian Stoch

Perfect, thanks Katya.


Change placeholder

Posted: Sat Apr 11, 2015 2:41 pm
by Joe Sharples

How would I change the font color of the placeholder text with javascript?
I tried

pre
Apperyio("inputName").attr("placeholder", "some text ").css('color','#ff0000');
/pre

and

pre
$("[name=a1]").attr("placeholder", "some text ").css('color','#ff0000');
/pre

They both changed the placeholder text to 'some text'
but neither of these changed the text color.


Change placeholder

Posted: Sat Apr 11, 2015 8:04 pm
by Illya Stepanov

Hi Joe --

Please take a look here: http://stackoverflow.com/questions/14...


Change placeholder

Posted: Sun Apr 12, 2015 9:10 am
by Joe Sharples

Thank you.