Hi..
I have a page where i have some drop downs whose defalut value is set to "All". unlike the other cases where, when we click on the drop down arrow we get a list items to select. Clicking on the items and getting a pop up is easier.
But Now my requirement is on click of this drop down arrow a pop up extender(Ajax) has to be opened. There should not be any list items below as in the normal case.
...
User Profile
Collapse
-
modal pop up on clicking the drop down
-
modal pop up on clicking the drop down
Hi..
I have a page where i have some drop downs whose defalut value is set to "All". unlike the other cases where, when we click on the drop down arrow we get a list items to select. Clicking on the items and getting a pop up is easier.
But Now my requirement is on click of this drop down arrow a pop up extender(Ajax) has to be opened. There should not be any list items below as in the normal case.
... -
Code:<asp:GridView ID="grdLevels" runat="server" AutoGenerateColumns="False" Width="750px" OnRowDataBound="grdLevels_RowDataBound" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal" EnableViewState="true"> <Columns>
-
This is the Java script functin for validating the drop down.. listbox n text box...
[code=javascript]
function ValidateSave()
{
var lblSelectClient = document.getEle mentById('<%=dd lSelectClient.C lientID%>');
if(lblSelectCli ent.selectedInd ex==0)
{
alert('Please select a client');
return false;
}
var ddlSelectHierar chy...Leave a comment:
-
thanks for the reply.. i have drop down and lsit boxes in my page.. these listboxes are dynamic and can vary from 1 to 4.
as u said i have used document.getEle mentsByTagName( "select") to get all the references.. this is working fine for the dropdown, when it comes to list box ... instead of selecting the labeldesc of the lisbox it takes the values of the list box.Leave a comment:
-
Validating a listbox using javascript
can anybody tell me how do u validate a listbox to select atleast one item from it. I have a listbox within the template field of a grid view. and these listboxes can vary from 1 to 4. how can i know how many listboxes are present so that i can loop in javascript.
No activity results to display
Show More
Leave a comment: