Nguyen Trong Nhan
Nguyen Trong Nhan

Reputation: 153

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.

Upvotes: 0

Views: 867

Answers (1)

Samuel Liew
Samuel Liew

Reputation: 79042

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

Upvotes: 2

Related Questions