Skip to content →

QuickCode: Remove garbage from Prompts, make users happier

[code]jQuery("#YOURIDHERE option:first").remove();

jQuery("#YOURIDHERE option:first").remove();

[/code]

I’m pretty sure everyone wants to remove the first two options in a prompt at some point in their life. Replace #YOURIDHERE with the ID of the prompt, and run this twice! The first one removes the parameter name – the second one removes the dashes. Easy!

Published in Uncategorized

One Comment

  1. T. Blom T. Blom

    Yes, parameter and dashes are removed, but it is also not possible to select the first 2 values in the resulting list. At least, they can be selected, but the prompt indicates no value is chosen so you cannot commit the prompt page (unless you skip first 2 values 🙁 )

Leave a Reply

Your email address will not be published. Required fields are marked *