Toggle on Div in repeater

I have a toggleon/off div tag insode a repeater.

It works...but ONLY toggles the top "repeated" div.

Activater and action div both inside repeater


Toggle action.....
<a class="select" onclick="$('#toggleOn_details').hide(); $('#toggleOff_details').show(); $('#search_Details').slideToggle('slow');"
                                                                                                                    href="javascript:void(null);"><span style="font-size: 9pt;">Click Here to Show Rates</span>
 
 
 
Div being toggled
 <div class='toggleoff' id="toggleOff_details">
                                                                                        <a class="toggle_sign" onclick="$('#toggleOff_details').hide(); $('#toggleOn_details').show(); $('#search_Details').slideToggle('slow');"
                                                                                            href="javascript:void(null);">&nbsp;</a><a class="toggle" onclick="$('#toggleOff_details').hide(); $('#toggleOn_details').show(); $('#search_Details').slideToggle('slow');"
                                                                                                href="javascript:void(null);"></a>
 
more code...

Open in new window

Larry Bristersr. DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GuitarRichCommented:
it looks to be because of the id of the DIV - if you have that in a repeater your going to have multiple DIV elements with the same ID - you will need to give each div element a unique ID and also make sure that the links to toggle on/off have the corresponding ID in the onclick events.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Larry Bristersr. DeveloperAuthor Commented:
GuitrarRich,
  Excellent...I assigned the containerid to it and worlks great.

Asking new question now...
0
Larry Bristersr. DeveloperAuthor Commented:
Excellent...I assigned the containerid to it and worlks great.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.