is that going to be the only element with the class name "test"?

since only the second part of the id is dynamic, you could also do:

$('div[id^="menu_"]') to reference the element

On Wed, May 27, 2009 at 10:24 PM, waseem sabjee <waseemsab...@gmail.com>wrote:

> var myID = $(".test").attr("id");
>
> alert(myID);
>
>
> On Thu, May 28, 2009 at 6:24 AM, Dave Maharaj :: WidePixels.com <
> d...@widepixels.com> wrote:
>
>>  How do you find an ID that is generated dynamically?
>>
>> <div id="menu_<?php echo $variable ;?>" class="test">
>>
>> Dave
>>
>
>


-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to