Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Input types in Javascript

  • Ursusprimus
  • Ursusprimus's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186864 by Ursusprimus
Input types in Javascript was created by Ursusprimus
Hi,
is there a listing of all the input types for Javascript? I didn't find it in the manual.

Background: I need to change following passage so that it fits to the question type long free text (it works fine with short free text):

<script type="text/javascript" charset="utf-8">

$(document).on('ready pjax:scriptcomplete',function(){

$('#question{QID} input:text').attr('placeholder', '(Vorname, Nachname)');
});
</script>

I guess, all that needs to be done is change '#question{QID} input:text' to '#question{QID} input:???'
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 8 months ago #186867 by Joffm
Replied by Joffm on topic Input types in Javascript
1. Not related to javascript but HTML
www.w3schools.com/html/html_form_input_types.asp

2. "Long free text" is not an "input"-field, but "textarea", quite different. So you have to change to that.


Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, cdorin, Ursusprimus
The topic has been locked.
  • Ursusprimus
  • Ursusprimus's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 8 months ago #186924 by Ursusprimus
Replied by Ursusprimus on topic Input types in Javascript
Thanks Joffm, works fine now.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose