select option in dropbox through javascript

If you want to select an option in your Dropdown box as you select that option from a link.
Here is solution……

I have used the code with onclick event you r free to use at any event.




Put this into Head section:


function setdate(num)
{
//alert(num);
document.f1.approxdate[num].selected=true;
}

Put this into Body section:



ha ha ha
hi hi hi
hu hu hu
he he he
ho ho ho




ha ha ha


hi hi hi


hu hu hu


he he he


ho ho ho







     i ♥ i  

Advertisements

Say something : I accept all the "Humer&Critic"

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s