javascript - go to next field automatically html5 form -
i using following html5 form.
<form> <input type="text" name="orderno" /> <input name="picture" id="img" type="file" accept="image/*" capture="camera" /> <input class="btn-success" type="submit" name="submit" value="upload" /> </form>
when open page in mobile phone, want when fill first input text, there should button called "next" in keyboard shows "go" button directly. please?
javascript function document.getelementbyid('img').focus();
not opening camera automatically.
i want facility launch camera on phone automatically when clicked "next" or "go" in keyboard.
for security concerns, browsers not allow direct access file uploader or image capture trigger. user has click on corresponding field upload file or capture photograph. can define focus after each has been addressed.
Comments
Post a Comment