- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Input types in Javascript
- Ursusprimus
- Topic Author
- Offline
- New Member
Less
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:???'
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12790
- Thank you received: 3940
4 years 8 months ago #186867
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
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
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
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.