How to add place holder text to an input field (short free text, etc)
If you want to add placeholder text to a short free text type question, like this:

You can use the following JavaScript in the source view of your question:

[script type="text/javascript" charset="utf-8"] $(document).on('ready pjax:scriptcomplete',function(){ $('#question{QID} input:text').attr('placeholder', 'My placeholder text...'); }); [/script]

Be sure to replace [ ] with < > around these two elements:

[script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;]

113 of 188 people found this helpful.   

Powered by LiveZilla Helpdesk