简体   繁体   中英

Do we have any generic script / jquery plugin to apply javascript on the content loaded through ajax tabs?

I need ajax tabs and a jquery slider for the second tab.

ISSUE: If the content is not loaded through ajax everything works fine but to ajax content scripts are not applicable.

REQUIREMENT: As I am using ajax in most of places, is there any generic script / plugin which will help me to overcome this problem in general?

Thanks in advance.

This sounds like you have to initialise the slider after you load it using ajax.

$('.tab').html(data.returns);
//after that initialise slider.. should work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM