我使用函数.hover()时遇到问题.它是一个简单的悬停效果,在一个div中滑动一些内容,问题是我在页面中有多个div与w相同的类和此功能一次动画所有项目,而不仅仅是其中一个muose步骤,我该怎么办呢?在此先感谢这是我的代码
HTML:
<div class="col-lg-4 col-md-4 col-sm-6 progetto hidden-xs">
<div class="box-progetto-image">
<?php the_post_thumbnail(); ?>
<h2 class="titolo-progetto"><?php the_title(); ?></h2>
</div>
<div class="container-meta">
<div class="container-cerchi">
<a class="cerchio-progetto" href="<?php echo get_post_meta(get_the_ID(), 'yiw_progetti_link', true); ?>" title="<?php the_title(); ?>" rel="nofollow" target="_blank">
<img src="<?php bloginfo('template_url'); ?>/img/link.png" alt="Visita il sito">
</a>
<a class="cerchio-progetto" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<img src="<?php bloginfo('template_url'); ?>/img/plus.png" alt="Maggiori informazioni">
</a>
</div>
<div class="layout-image">
<?php if (class_exists('MultiPostThumbnails')) :
MultiPostThumbnails::the_post_thumbnail(get_post_type(), 'layout-image');
endif; ?>
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
ad这是我的jQuery:
SCRIPT>
$(document).ready(function() {
$('.progetto').hover(function() {
$('.container-meta').css('right', '0'); …Run Code Online (Sandbox Code Playgroud) 我想删除禁用提交表单的按钮的类.我可以在用户开始输入表单时执行此操作吗?按钮的ID为"add",类为"disabled".
这是html表单
<form id="form" class="col-lg-12 col-md-12 col-sm-12 col-xs-12" action="index.php" method="post" >
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<label>SlackSpot Name</label>
<input type="text" class="form-control required" placeholder="Spot Name" name="nome" id="nome">
<label>SlackSpot Description</label>
<textarea class="form-control required" rows="3" name="descrizione" placeholder="Description" id="descrizione"></textarea>
</div>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<label>SlackSpot Latitude</label>
<input type="text" class="form-control required" placeholder="latitude" name="latitudine" id="lat" title="Insert your Spot latitude or live the geolocation value">
<label>SlackSpot Longitude</label>
<input type="text" class="form-control required" placeholder="longitude" name="longitudine" id="lon" title="Insert your Spot longitude or live the geolocation value">
</div>
<div class="col-lg-12 …Run Code Online (Sandbox Code Playgroud)