On Thu, Feb 5, 2009 at 11:45 PM, Praveen <praveen.python.pl...@gmail.com> wrote:
>
> so that's why i am generating different div id
>
> {% for name in eventname %}
>                        <div id={{ name }} class="viewalldetailslinktext">
> ...
>
> so now my div id is
> <div id="The" spice="" tate-le="" jardin=""
> class="viewalldetailslinktext">

It appears that you first must fix how your application assigns the ID
to the div.

Once you've dealt with that, just assign another class (eg.
YourClassName) to your 2 divs.

$(document).ready(function ()
 {
       $('.YourClassName input.basic, .YourClassName
a.basic').click(function (e)
       {
               e.preventDefault();
               $(this).parents(.YourClassName).modal();
       });
});

Reply via email to