0

I'm not sure what this is called and have not had much success searching for it yet. In a plugin settings page, I would like a 'combo box' or 'drop down box' that also includes the ability to add an option that is not currently included. That newly added option would be added to the options in the box from that point on.

Is there such a function within the Settings API or does it need a separate text box that is then added to the options array?

Or a better way altogether?

Thanks :)

0

If you want to do it dynamically on the page you need javascript. This tutorial explains how to add a items to a <select> box. You would have a textbox, the user would type that information in, when they press a button, that would trigger a JavaScript function like the one in the tutorial. Does that answer your question?

  • Thanks, I'll check out the tutorial and let you know how I get on. Cheers, K – kerrin Jul 11 '12 at 23:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.