javascript - Cannot focus on button when focused in textarea in mobile -


i have textarea when user types text , clicks button underneath, button not work first time, have push twice on button make work. it's if first time click focusing out of textarea (the keyboard closes) , second time click button. happens in mobile (galaxy s3 , iphone4).

anyone know can stop doing that?

this js code

jquery('.nextbutton').click(function () {   alert('clicked'); }); 

html

<div class="questionoptions selectiontextarea">        <textarea rows="4" cols="40" name="s3q1" id="textareas3q1"></textarea>        <input type="button" value="next" class="nextbutton"> </div> 

try add return false;

jquery('.nextbutton').click(function () {   alert('clicked');   return false; }); 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -