hi,

is it possible to use jquery id using python variable?

e.g.
{{=DIV(A(T('Post a Comment'),
         _href = '#'),
       _id = '%s' % page.id)}}

=== 1 ===
    jQuery('#%s' % page.id).click(function()
    {
        jQuery('.form').slideToggle('slow');
    });

=== 2 ===
    jQuery('#{{=page.id}}').click(function()
    {
        jQuery('.form').slideToggle('slow');
    });

i've tried both (no 1 & 2) but jquery is not running, i know i have a
wrong code, did anyone know how to fix it?
thank you so much before

Reply via email to