简体   繁体   中英

JQuery UI slider not work inside fancybox?

I try to put slide bar inside jquery fancybox popup but some events like mouseup, mouseover not work. But if I put slider div outside fancybox popup, if work normally. So how can I fix this problem? Appreciate your helps.

try using:

.live('mouseup', function() {

.live('mouseover', function() {

instead of:

.mouseup(function() {

.mouseover(function() {

as the content inside fancybox is created dynamically.

You could also put your slider initialization code inside of the fancybox onComplete function. See fancybox.net/api

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