Skip to main content

All Questions

0 votes
1 answer
1k views

jquery - How to add image to the Select2 dropdown list with data retreived from MySQL and PHP through AJAX?

I want to add an image in front of the options in the searchable dropdown list I made. The list is populated with data from MySQL database retrieved via PHP and AJAX. I am using the Select2 plugin for ...
Boris J.'s user avatar
0 votes
1 answer
2k views

How to use ternary operator in jquery within ajax call?

I am using core PHP, jQuery and MySql. I have 2 dependent dropdowns in my code. The first dropdown of company list is coming from the database directly with a query on the same page. For the second ...
amit sutar's user avatar
2 votes
1 answer
56 views

Retrieving data to dropdown menu from database but it is not displaying there

I'm trying to get values from database to drop-down list using jQuery. But nothing is showing in the dropdown list. Here is the code: getlist.php <?php $conn =mysqli_connect("localhost&...
user avatar
0 votes
1 answer
189 views

Jquery dependent drop-down menu select

Sorry for my poor english. I'm unable to make option value selected from jquery dependent drop-down menu. I have three drop menu 1st category, 2nd is sub-category and 3rd is sub sub-category. 2nd and ...
Styled Bee's user avatar
0 votes
3 answers
4k views

select multiple value from drop down list

How to select multiple value from drop down list?, when the value is selected it will no longer be available in the drop down menu. [] I want can be able to select multiple email addresses at once ...
Riska Nanda's user avatar
-2 votes
1 answer
202 views

How Select Multiple Items from a Drop Down lists and insert multiple value to MYSQL

I have an html form that has a select list box from which you can select multiple values that come from the database. I want to be able to select multiple values simultaneously, in the example here we ...
Riska Nanda's user avatar
0 votes
1 answer
263 views

How to show the last selected dropdown value after insert PHP values in Mysql?

I have a plenty of list of writers and publishers which are to be inserted in mysql through PHP, but every time I have to select between "Add Writer" and "Add Publisher" manually after inserting every ...
Ronit's user avatar
  • 57
1 vote
1 answer
193 views

On change regenerate a dropdown options

i have a dropdown list that when i click an option i want another dropdown regenerate its options from mysql. The code of the first dropdown list: <div class="form-group"> <label ...
Antonis Psaroulakis's user avatar
0 votes
1 answer
1k views

How to show a second dropdown based on previous dropdown value using Javascript

I'm trying to get the second dropdown value based on the first dropdown value using JavaScript. At first, the second dropdown is in hidden mode and activated by choosing the first dropdown and then ...
bonne nuit's user avatar
-1 votes
1 answer
491 views

Dynamic Drop Down for categories based on parent_id

My query is related to Dynamic Drop Down option in PHP which you think might be an existing question asked before but my scenario is a bit typical as all the values for drop downs will be fetched ...
Alpha's user avatar
  • 329
1 vote
1 answer
147 views

Consecutive dropdown filtering missing default select value

Note: The code snippet has been corrected and works. In a MySQL table, I have the following columns (and respective values): Category (Fruit, Vegetable) Type (Apple, Orange, Pumpkin, Potato) Subtype ...
mistaq's user avatar
  • 385
0 votes
1 answer
33 views

Filtered dropdowns

This has been bothering me for a while, I am creating a web app which has the potential of having a ton of records. People will be able to navigate from record to record using the select dropdowns. My ...
Dark-Cloud's user avatar
0 votes
2 answers
216 views

Ajax and SQL population of a dropdown

This seems to be the pain of my life I have now spent hours on this and none of the researched solutions seem to fix it. My code is supposed to populate a dropdown from a database called "notes" the ...
charles verfuerth's user avatar
-1 votes
2 answers
57 views

dropdown box in php and javascript

I am looking for a way to create a drop down list depending on what the user chooses. If the user picks the package of one profile the the output will give the user a drop down list with 1 field if ...
user7681006's user avatar
0 votes
3 answers
168 views

How to display same records in multiple drop down form database using PHP?

I have two drops down and I am able to display the records in one dropdown from a database. I am getting the second drop down list bank.I have to display same records in my second drop down but it is ...
Naren Verma's user avatar
  • 2,297

15 30 50 per page
1
2 3 4 5 6