See the following complete code page and feel free to ask if you don’t understand anything
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
document.location = 'samepage.php?catid=' + catid;
/* But if you want to submit the form just comment above line and uncomment following lines*/
//document.frm1.action = 'samepage.php';
//document.frm1.method = 'post';
<form name="frm1" id="frm1">
<select name="catid" id="catid" onChange="doReload(this.value);">
<option value="" selected="selected">---All Category---</option>
<option value="1">Category One</option>
<option value="2">Category Two</option>
hello rajug, thanks for the reply…
Thats great – thats plenty of info
Before you do anything, be aware this is a bad thing from a usability point of view. Some browsers fire the onchange event when the mousewheel changes the selection, or the user moves up and down through the options with their cursor keys. If your page refreshes every time they do this, they’ve going to quickly get frustrated and go elsewhere.
Add this before the closing form tag.