1.i have one dropdownlist for state names.
2. i have one button named refreshbtn1.
i write function onClientClick for this button as
function refreshing()
{
location.reload();
}
when i select item from DDL & click button then Page refresh occured
SO my problem is.... I NEED same index/Item/value of DDL after refreshing the page using javascript.
Thanks In Advance....

Member Avatar for rajarajan2017

After refreshing the page, the value should not be retreived use AJAX/PHP for some functionalities.

Don't refesh the page just store/send the current value of the DDL and then clear the list to the default view. As RajaRajan states above the refresh won't send the values anywhere its like calling the page for the first time. If its in a form just submitting the form will send the values and clear the dropdown if that is your wish.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.