jQuery Mobile button js control
Posted
by
David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2012-12-06T04:53:44Z
Indexed on
2012/12/07
11:04 UTC
Read the original article
Hit count: 161
I have a button that is not triggering event in jQuery mobile. It was working but I had to remove the css. It was screwing up my all my ul lists. Any help would greatly appreciated
Here is the code for the button at the bottom of the form :
<div class="next">
<a class="btnNext">Next >></a>
</div>
Which is supposed to do this on a separate js file:
init: function(){
$('.btnNext').onclick(function(){
if ($('input[type=radio]:checked:visible').length == 0) {
return false;
}
$(this).parents('.questionContainer').fadeOut(500, function(){
Here is the css I removed:
a {
border: 1px solid #000;
padding: 2px 5px;
font-weight: bold;
font-size: 10px;
background: #FFF;
cursor: pointer;
}
a:hover {
background: none;
}
© Stack Overflow or respective owner