Thought I would make the question clearer.
I need to be able to access a control, using JavaScript (or assigning
a result from a script that would get the correct ID to then use in
the selector), without using code-behind and ideally as concise as
possible.
Thank you.
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"
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]>
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:
>
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
>
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 <
"Anyone got an idea of what could be causing it?"
Without example code of what you are trying to do, it could be
anyone's wild guess
In the end, an generates to a object,
which jQuery has absolutely zero problems dealing with
On Nov 6, 8:42 am, Damien <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I
7 matches
Mail list logo