Jump to content
Sign in to follow this  
Jeisson

mobile click not working

Recommended Posts

 

I have a php file in a iframe from where I take a form result to the parent with following jquery code. In the example there is both appendTo to a <p> and an input element. Anyway works fine on desktop browsers as far as I have tested, but not on my phone

.
<script>
$('#order').click(function() {
var free = $('#iframeid').contents().find('#free').text();

$("<span>"+free+" </span>").appendTo("#g");
$('.g').val($('.g').val() + vapaa);
});
</script>

<button id="order">'order domain</button>
<p>
<div id="wrap">
<p id="g"></p><p>
<input type="text" class="g" id="inputbox" name="input" placeholder="www.example.com" width="100px"/>
</div>

Any other solutions? I managed only to make these. Preferable I use input text element. The span was just for a test. Thanks.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.