It's just one row, the one being edited. I think ID might be easier since I can define the row.
Here is the code I am using: <% if (gridview.EditIndex > -1) {%> { $(#<%= gridview.Rows[gridview.EditIndex].FindControl("dropdownbox").ClientID %>).select(function() { alert("hello"); $(".grid").block({ message: '<h1>Processing</h1>', css: { border: '3px solid #a00' } }); }); } <% } %> On Nov 6, 4:47 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Yes, selecting by classname instead of id is a much easier solution > > but then again, that depends on what you are trying to do..... > 1) Do something in jQuery to just one row's select item > 2) Do something in jQuery to all row's select items > > On Nov 6, 11:38 am, Damien <[EMAIL PROTECTED]> wrote: > > > a CssClass as selector *^ > > > On Nov 6, 4:38 pm, Damien <[EMAIL PROTECTED]> wrote: > > > > Ok the problems seem to be to do with embedded objects, i.e my > > > dropdownlist exists in a gridview. But if I use a class it should > > > still work shouldnt it? > > > > On Nov 6, 2:10 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > > > > > First place to check would be the selector. Make sure the select > > > > element is > > > > actually getting selected. I'd recommend using Firebug to help you see > > > > if > > > > the selector you are using is working and to help you formulate one that > > > > does if it isn't. > > > > -- > > > > Brandon Aaron > > > > > On Thu, Nov 6, 2008 at 7:42 AM, Damien <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > I am trying to use a DropDownLists and jQuery, I was trying to use the > > > > > jQuery events and then call a function but it seems not to be working. > > > > > No matter what event I choose nothing happens! > > > > > > Anyone got an idea of what could be causing it? Do drop down lists > > > > > in .Net not have the standard events