Delete select options (dropdown list) via java script

Mehr
2 Jahre 8 Monate her #112398 von ongkichilam
ongkichilam antwortete auf das Thema: Delete select options (dropdown list) via java script
Got it! Thanks again.

Bitte Anmelden um der Konversation beizutretten.

Mehr
2 Jahre 2 Monate her - 2 Jahre 2 Monate her #118226 von nickwelhar
nickwelhar antwortete auf das Thema: Delete select options (dropdown list) via java script
Check with........SPAM ? corelangs.com/js/progs/options.html Javascript Combobox
Nick
Letzte Änderung: 2 Jahre 2 Monate her von DenisChenu.

Bitte Anmelden um der Konversation beizutretten.

Mehr
2 Jahre 2 Monate her #118228 von DenisChenu
DenisChenu antwortete auf das Thema: Delete select options (dropdown list) via java script
@nickwelhar ? Did you really read the question or you search a forum to put a link ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden um der Konversation beizutretten.

Mehr
1 Jahr 2 Monate her - 1 Jahr 2 Monate her #133237 von deejroamer
deejroamer antwortete auf das Thema: Delete select options (dropdown list) via java script
@DenisChenu, Thank you for your amazing out of the box script. I just modded it a bit so that the CSS of the new select is same as it was for the original select.

Link Here

I am not sure how long link will be up so To do the same

Add this line
var classSelectFilter = $("#question"+qID).find("select").attr('class');

Mod this line
var NewSelectElement = "<select id='"+idNewSelectFilter+"' class='"+classSelectFilter+"'><option value=''>"+$("#"+idSelectFilter+" option[value='']:first").text()+"</option></select>";

I request DenisChenu to permanently add this tweak to help any future users. Not everybody has time to skim through forums like us.
A credit to me would be nice :)
Letzte Änderung: 1 Jahr 2 Monate her von deejroamer.

Bitte Anmelden um der Konversation beizutretten.

Mehr
1 Jahr 2 Monate her #133248 von holch
holch antwortete auf das Thema: Delete select options (dropdown list) via java script
Our manual is a wiki, so you actually can add this yourself and help the community. The credit will then be given automatically through the system (I think at the end of the page).

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Bitte Anmelden um der Konversation beizutretten.

Mehr
1 Jahr 2 Monate her - 1 Jahr 2 Monate her #133256 von deejroamer
deejroamer antwortete auf das Thema: Delete select options (dropdown list) via java script
Oh, DenisChenu's Method is not updated in Manual.

I was just telling that the script DenisChenu has on his server (link he gave in the second post )
So that when somebody else uses his script he gets added benefits to CSS Retention.

I will try updating the wiki. Never done it before :P

@DenisChenu, Can I use your method to update the wiki?
Letzte Änderung: 1 Jahr 2 Monate her von deejroamer. Begründung: Asked DenisChenu for permission

Bitte Anmelden um der Konversation beizutretten.

Mehr
1 Jahr 2 Monate her #133258 von DenisChenu
DenisChenu antwortete auf das Thema: Delete select options (dropdown list) via java script

deejroamer schrieb: @DenisChenu, Can I use your method to update the wiki?

The script is free like a speech (and like a beer). Then yes , no problem.

I have to put it in git(hub|.framasoft|lab) with a clear MIT licence, when i do : i put the link here. I search for a way to do it in plugin (without need to deactivate XSS for user).

Denis
PS: MIT licence : keep copyright (mine and yours).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Bitte Anmelden um der Konversation beizutretten.

Mehr
1 Jahr 2 Monate her #133259 von deejroamer
deejroamer antwortete auf das Thema: Delete select options (dropdown list) via java script
A'right, Works for me, if you need help doing it, don't mind asking. I am free before May, maybe we can make it work.

Bitte Anmelden um der Konversation beizutretten.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten