Posted in React JS

Cascading or dependent dropdown using React JS

Introduction In this post I will show you an example on cascading or dependent dropdown using React JS. When you have a requirement for selecting dropdown values based on another dropdown values then you need to create such cascading or dependent dropdown. For example, in your application you need to select city based on state or country then you need…

Continue Reading... Cascading or dependent dropdown using React JS
Posted in Angular

Cascading or dependent dropdown using Angular 8/11

Introduction In this post I will show you an example on cascading or dependent dropdown using Angular 8/11. When you have a requirement for selecting dropdown values based on another dropdown values then you need to create such cascading dropdown. For example, in your application you need to select city based on state or country then you need to create…

Continue Reading... Cascading or dependent dropdown using Angular 8/11
Posted in PHP

Dynamically Generate Months In PHP

Introduction Sometimes you may need to select month value from drop-down or select option box and for that you hardcode the month values in HTML option fields. It is possible to dynamically generate month values using PHP and you can use those generated month values in HTML select option tag. This way you do not need to hardcode the month values and…

Continue Reading... Dynamically Generate Months In PHP
Posted in PHP

Dynamically Generate Years In PHP

Introduction Here in this example I am going to show you how to generate years in PHP language. Sometimes you may need to select year value from dropdown or select/option field and for that you hardcode the year values in HTML option fields. It may be cumbersome at the point when you want to add a new year value to the option…

Continue Reading... Dynamically Generate Years In PHP
Posted in jQuery

Dependent Dropdown Example

This tutorial will show you how to create dependent or cascaded dynamic dropdown using jQuery. Sometimes you need to create such a cascaded dropdown where you need to select some value in the second dropdown based on first dropdown value. For example, you may need to select city dropdown value based on country dropdown value and for this you cannot…

Continue Reading... Dependent Dropdown Example
Posted in jQuery

Adding DropDown or ComboBox dynamically using jQuery

This tutorial will show you how we can create combobox using jQuery. We will also alert the value when we select the item from the combobox or dropdown.

Continue Reading... Adding DropDown or ComboBox dynamically using jQuery
Posted in JavaScript PHP

Dependent Dropdown Example in PHP, MySQL

Introduction This tutorial shows how to create dependent dropdown in PHP and MYSQL. This is also called cascaded dropdown. This tutorial uses JavaScript to submit the form automatically when the first dropdown value is selected. Sometimes you may need to create such a cascaded dropdown when you need to select some value in the second dropdown based on first dropdown…

Continue Reading... Dependent Dropdown Example in PHP, MySQL
Posted in HTML jQuery

Add Input Fields To Form Dynamically Using jQuery

Introduction This tutorial shows an example how to add input fields to form dynamically using jQuery. Input field types may be text, textarea or file to the form. I also have added remove button next to the added input field to remove the field if you think later that do not need it. For this example, I have used here…

Continue Reading... Add Input Fields To Form Dynamically Using jQuery