Sometimes we need to select month value from drop-down and for that we hardcode the month values in HTML option fields. It is possible to dynamically generate the month values using PHP and we can use those generated month values in HTML select option tag. You may also read Dynamically generate years in PHP
Sometimes we need to select year value from drop-down and for that we hardcode the year values in HTML option fields. It may me cumbersome at the point when we want to add a new year value to the option field as the year value grows as the time progresses. So it is possible to dynamically generate the […]
This tutorial will show you how to create dependent or cascaded dynamic dropdown using jQuery. Sometimes we need to create such a cascaded dropdown where we need to select some value in the second dropdown based on first dropdown value. For example, we need to select city dropdown value based on country dropdown value and […]
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.
This tutorial shows an example how to add input types text, textarea and file to the form. For this example I have used here jquery for dynamically adding inputs, css for some basic style and html code. We have select/option for what type of input to be added to the form. We have one <span/> […]