Now a days Ajax is a most popular technology in web-development field.
Here we will see how can we select country and city dynamically without refreshing a page using ajax.
First create two tables and insert some data into the database.
one table for country and another for city.
The tables structure are given below-
tb_country

country_id
country_name

1
India

2
Pakistan

3
USA

here country_id is defined [...]

  • Share/Bookmark
Tags: ,

There is a advantage in Ajax form validation, because the validation is completed without page reloading.I also learnt how to retrieve the multiple checkbox values in which input names are the same.It was very interesting for me to create a table of two column which displayed the from database. The code is very simple.

  • Share/Bookmark