我有jquery
jQuery(document).ready(function(){
jQuery('.et_pt_item_image').click(function(){ // attach a function to elements with the class "unhide"
jQuery(this).closest('.et_pt_item_image').find('.hidden').show(); // Look for the closest parent of this item with
我刚刚将默认的实现到我的移动站点中,结果发现jQuery无法执行更简单的任务:显示具有隐藏类的元素。难以置信,但是真的。
极其复杂和有问题的隐藏类是:
.hidden {
display: none; /* jQuery smartly toggles this to block, well done! */
visibility: hidden; /* But it forgets about this little attribute */
}
当前,切换(真)和显示()只改变显示属性,而不是隐藏的可见性.有办法轻松地切换两个display+visibility吗?
我宁愿不编辑引
<?php
if (isset($_POST['submit']) {
/*
If the user submits the form and
use jQuery to hide an existing div tag
<script type="text/javascript">
$('#mydiv').hide();
</script>
*/
}
?>
有没有一种像这样混合php和jQuery的方法呢?我只希望我的jQuer