I have a jquery accordion that loads a lot of data. This accordion is generated by querying a database. My question - is there a way to not load the content until a specific element of the accordion has been clicked? Basically, I'd like to replicate the functionality of the jquery tab ajax content load to the accordion.
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Using :remote => true with hover event
- Is there a way to play audio on a mobile browser w
Can't you just bind a handler to the "change" event?
I am using jquery ui-1.11.4 and had this same issue. This is the solution I pieced together.
The Javascript:
The HTML:
Check out this question and this blog entry, it might point you in the right direction.
you can check this link in this site, I think it is very helpfull.
jQuery Accordion and loading content through AJAX