Jump to content

Enableing and Disableing of the fly


Liquid-Fire

Recommended Posts

I thing I am going to need to know how to do for a project I am design in how to change or add form imput stuff for the fly with out having to read the page. What i mean is that let say the are 2 drop done boxes the first one a a yes and a no option adn the second as a list of stuff from a database. I am going to have the default value for the first box no and want to disable use, grayed out, the second. now when the user select yes in the first box, a tthat time I want the second box to be enable and ungrayed out. Now how would I pull something like this off? PHP? Javascript? I am really not sure how to do this so some help would be cool.

Thank You
Ryan Zec
Link to comment
Share on other sites

You'll want to look into Ajax for that sort of thing. You can code the backend in PHP then you use AJAX that then sends a call to your php script which then populates the secound drop down menu. With AJAX it will be done in the background and doesn't require for the user to be redirected or the page to be refreshed.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.