【发布时间】:2013-02-05 22:52:23
【问题描述】:
在 drupal 网站上,我有一个 webform 和 table-like sorted inputs。很难很好地显示长描述。有什么建议吗?
【问题讨论】:
标签: jquery drupal drupal-webform
在 drupal 网站上,我有一个 webform 和 table-like sorted inputs。很难很好地显示长描述。有什么建议吗?
【问题讨论】:
标签: jquery drupal drupal-webform
这是我为将折叠的描述附加到标签上所做的(添加为 node 描述):
<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/
还有其他建议吗?
【讨论】: