How to handle a jquery in codebehind

Posted by Jenniffer under jQuery on 1/5/2015 | Points: 10 | Views : 1279 | Status : [Member] | Replies : 1
<script>
jQuery(document).ready(function ($) {
$('.accordion-title').click(function () {
if (!$(this).hasClass('active')) {
$('.accordion-title').removeClass('active').find(':first-child').addClass('plus').text("+").removeClass('minus');
$('.accordion-item').slideUp();

$(this).toggleClass('active')
.find(':first-child').removeClass('plus').addClass('minus').text("-").parent().next().slideToggle();
}
})
.filter(':first').click();

});
</script>

This was t script i'm using. Now i want n tat position i want to pass dynamic id and then t required id content should display on screen. how to pass a dynamic id n tat line

Thanks & Regards
JENI



Responses

Posted by: Joginder on: 1/6/2015 [Member] Starter | Points: 25

Up
0
Down
<%your id code paste here %>

.filter(<%id%>).click();



Jenniffer, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response