2010-06-11 73 views
0

我在使用lightbox時遇到了一個奇怪的問題。燈箱在輸入時多次打開

凡是使用新燈箱的用戶都可以在相同的頁面數上打開相同的燈 。對於e.g

Using tab button go to `Lightbox link`. 
Press enter --> Light box will open. 
Press enter --> second light box open below the previous one. 
and so on....... 

當我使用標籤時出現的問題和環節上輸入我的重點是沒有得到從鏈接改變,因此用戶能夠打開點擊enter多個收藏夾。

我嘗試以下,但它不是爲我工作

<a href = '/calenders/add_shipment' onclick ="this.blur()" class='lbOn'> 
    <img src='/images/box-plus.png' style='border:none;'> 
</a> 

應該怎樣我接近擺脫這種。

+0

我用隱藏文本框中的設置焦點完成它。 'document.getElementById('set_focus')。focus();' – Salil 2010-06-11 11:45:38

回答

0

我使用隱藏文本框中的設置焦點完成了它。如下

<script type="text/javascript" language="JavaScript"> 
    document.getElementById('set_focus').focus(); 
</script> 

<div style="display:none;"><input type="text" size="20" id="set_focus"/></div>