Skip to content Skip to sidebar Skip to footer

Set Up Form Option As Default In A Drop Down

I have created a driven database drop down menu on my website. It sends the selected value by the user to the database to be checked and returns a specific item. Everything works p

Solution 1:

I can think of two ways for this.

  1. When the page is requested, make a call to your DB in your server-side code to store that value beforehand.
  2. Use javascript's onload event to select the value as a part of a client-side script. You can use this answer as reference.

Post a Comment for "Set Up Form Option As Default In A Drop Down"