0

I have a Jquery function that runs when the button is clicked. This works perfect on my computer but when tested on my android phone it needed two button clicks to work?

 <script type="text/javascript" language="javascript">
       $(document).ready(function() {
       $('#thisid').hide();

        $("#button-create").click(function(event){
           var name = $("#create").val();
            var name2 = $("#create2").val();
           $("#stage").load('result.php', {name:name, name2:name2} );

        });
     });
  </script>

Button:

<button id="button-create" class="btn1">Create</button>

CSS:

 .btn1{
background-color:#ff7743;
border:0;
height:30px;
width:60px;
font-size: 18px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}

 .btn1:hover{

 color: inherit;
 background-color:#ff7743;

 }
.btn1:focus {outline:0;}
Anton
  • 25
  • 7

1 Answers1

1

There is no problems with your script. Look into your CSS file on "#button-create" style and disable all ":hoover" styles in your mobile version.

freethinker
  • 2,257
  • 4
  • 26
  • 49