View Full Version : ddaccordion: change position after togglehtml

12-15-2009, 12:24 AM
1) Script Title: Accordion Content script (v1.7.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm

3) Describe problem:

I would like to add two images in front of the header; I have changed suffix to prefix, but it doesn't work.

togglehtml: ["prefix", " <img src='close.gif' />", " <img src='open.gif' />"], //two images added to the end of the header

12-15-2009, 03:56 PM
So it looks like:

Alternate example (onclick):

from the demo page? If you have used "prefix" correctly and it still doesn't work, you must have some style (most likely - like a float) and/or markup that is affecting this. If you want more help:

Please post a link to the page on your site that contains the problematic code so we can check it out.