When you're posting markup don't post the server side code, all jQuery
cares about is the markup that is actually sent to the browser. Not
everyone here knows all the server side languages but everyone is
familiar with the client side markup, so you're more likely to get an
answer by posting just what is sent to the browser.
You have a couple of different elements with the same names, that
may cause problems with your form or other things you're trying to do.
From what you're describing, this should work for you:
-
$('.Reply').click(function () {
-
$(this).closest('p').next('.divrep').toggle(!$(this).closest('p').next('.divrep').is(":visible"));
-
});
Dave