0
On a drupal site我有一個webform與table-like sorted inputs。它很難很好地顯示長描述。有什麼建議麼?Drupal Webform項目描述很好地顯示?
On a drupal site我有一個webform與table-like sorted inputs。它很難很好地顯示長描述。有什麼建議麼?Drupal Webform項目描述很好地顯示?
這是我編附加說明暈倒標籤(添加爲節點說明):
<script type="text/javascript">
$(document).ready(function(){
$(".form-item:has(div.description)").children("label").append(function(){
$(this).parent().children('.description').hide();
return '<sup><a href="#" onclick="$(this).parent().parent().parent().find(\'.description\').toggle();" title="'+$(this).parent().children('.description').text()+'"><strong>?</strong></a></sup>';
});
});
</script>
沙盒的位置:http://jsfiddle.net/eapo/3ubec/
任何其他建議?
如果您使用的是drupal 7,您應該使用drupal行爲而不是document.ready – 2pha
謝謝,它在本文中是drupal 6。 – eapo