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
Post a Comment