2013-11-02 33 views
0

我正在處理表單驗證腳本,並且遇到了jQuery UI position()函數的問題。不管我會設置什麼選項,結果還是一樣...jQuery UI位置()選項不會影響結果

例如:在完全一樣的地方對象的

$(...).position({ 
     'of': $(obj), 
     'my': 'bottom left', <--- left 
     'at': 'top center' 
}) 

$(...).position({ 
     'of': $(obj), 
     'my': 'bottom right', <--- right 
     'at': 'top center' 
}) 

...位置。

Test Fiddle HERE

起初我還以爲是jQuery的maight不讀取對象width()正確,但你可以在連接小提琴看到,msg_boxwidth()

任何想法可能是錯的?

+0

你究竟想要達到什麼目的? – geedubb

+0

我想將錯誤消息放在複選框上。 –

回答

0

好吧,這個問題是微不足道的。它應該是my': 'right bottom'而不是my': 'bottom right'。第一個horizontal,第二個vertical

相關問題