0
我想在點擊按鈕時獲取按鈕的值。 即時通訊jquery很新,所以請幫助,我試圖加載或張貼在外部頁面上的按鈕 的值。這些值是從一個數據庫中加載的,因此每個按鈕都有一個不同的數字。 例如: INPUT TYPE = 「按鈕」 值= 「1」/>
INPUT TYPE = 「按鈕」 值= 「2」/>
INPUT TYPE = 「按鈕」 值= 「3」/>
當我點擊'按鈕1'我想發佈1到 外部頁面彈出和顯示按鈕1被點擊。將按鈕從一個按鈕加載到外部頁面
我的代碼是使用工具提示而不是彈出式工具完成的,但我相信它有相同的想法。
<script type="text/javascript">
$(document).ready(function() {
$('#qtip a[rel]').each(function(){
$(this).qtip({ content: {
text: '<img src="img/preloader.gif" alt="loading..." />',
url: $(this).attr('rel'),
title: { text: 'Flag This', button: 'Close' }
},
position: { corner: {target: 'bottomMiddle', tooltip: 'topMiddle' },
adjust: { screen: true }
},
show: { when: 'click', solo: true },
hide: 'unfocus',
style: { tip: true, border: {width: 0, radius: 4},
name: 'light',
width: 340
} }) });});
</script>
這是一個鏈接,點擊它時,它將打開頁面作爲工具提示。我希望能夠獲取價值 ,然後將其發佈到工具提示。請幫助