I'm using the code below to toggle a few different elements on the push of a arrow button. How come this code won't work if I put it inside an ASP.net UpdatePanel?
$(document).ready(function () {
$(".togglerElement").click(function () {
var target = $(this).attr("id");
ToggleTest(target);
});
function ToggleTest(target) {
var container = "#" + target + "Container";
var arrowUp = "#" + target + "ArrowUp";
var arrowDown = "#" + target + "ArrowDown";
$(container).slideToggle("fast");
$(arrowUp).toggle();
$(arrowDown).toggle();
}
});