how to pop up dropdown list using jquery....

Posted by See29ram under jQuery on 11/28/2011 | Points: 10 | Views : 5350 | Status : [Member] | Replies : 4
i m new to .net and i would like to pop up a dropdown list when i press a button...help me guys




Responses

Posted by: Hemanthlaxmi on: 11/28/2011 [Member] Starter | Points: 25

Up
0
Down
If you want to do this completely client side, you can also handle the drop down change event and write similar code inJS to show the modal. You could use $find("extenderName") to access the extender client side behaviors, although it doesn't always work very well for me. What I usually prefer is to have a button to open the modal modal popup, set style="display:none;" on it so that it's hidden from the user but rendered in the page, and then when I want to open the modal from JavaScript I just write: $get('<%= "#" + myButton.ClientID %>').click(); or something like that (I usuaully do it with jQuery very similar syntax $('<%= "#" + myButton.ClientID %>').click(); makes no difference except jQuery "click()" method is safer cross browser)

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedValue == "6")
ModalPopupExtender1.Show();
}

If this helps you .
Please "Mark as Answer"

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Arefin on: 11/29/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

You can visit the following links:
http://www.queness.com/post/77/simple-jquery-modal-window-tutorial

And you will be happy(may be) to visit the following link
http://choosedaily.com/1178/15-jquery-popup-modal-dialog-plugins-tutorials/

or, You can consider about AjaxControlToolkit (ModalPopupExtender).

Thanks,
Arefin

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sahoo on: 1/12/2012 [Member] Starter | Points: 25

Up
0
Down
Better use jquery template which is fast,clean way to populate.

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 3/19/2012 [Member] Bronze | Points: 25

Up
0
Down
http://webstutorial.com/jquery-popup-jquery-slide-popup/jquery

This Might Me More USeful

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response