Questions tagged as 'html5'

1
answer

Get the next input after an input (object)

I want to get the object of the 2nd input. Since I have more inputs with class 'check-date2', I want to get the element immediately after the first. HTML <div class="form_line"> <div class="column-50">...
asked by 30.08.2016 / 13:35
1
answer

Call Java function (Android) inside a hybrid mobile application with JavaScript

We are building a hybrid web application, which needs to print to a portable printer by bluetooth . But the printer is imported and only comes with a Java SDK, which is not our strong! We needed to print from the JavaScript code, but I'm not...
asked by 31.08.2016 / 22:17
1
answer

How to change the position of an html element with javascript?

I want to make the following position change, I have a div and inside it other div's for example: <div class="div-principal"> <div class="div-1"></div> <div class="div-2"></div> <div class="div-3"&g...
asked by 31.08.2016 / 22:34
1
answer

Preview input field does not work

My browser is not displaying the image. Something wrong with this code? $(document).ready(function () { $("input[name='fun_imagem']").change(function () { readImage($(this)); }); }); function readImage(input) {...
asked by 02.09.2016 / 22:54
1
answer

PHP + HTML form with select Restrictive

Greetings. I am starting out in this area of dev and have entered into a challenge of developing a Restrictive Form. What does it consist of? In this simple example I will use 3 selects 1 condition validation option value="AM" option v...
asked by 24.08.2016 / 05:47
1
answer

Carousel Bootstrap: Change Size

I'm trying to add my 700x400 images to the bootstrap carousel. And I wanted the carousel to have exactly those dimensions too. However, when I try to do this, the image decreases to 280 x 400, as in the image below, and the carousel goes to 700...
asked by 19.09.2016 / 20:46
1
answer

What is the difference between max-width and max-device-width?

The question is exactly what is in the title, referring to the use of the media queries I am in doubt because in examples of some sites they use something like: @media screen and (max-widht:x) and other [...](max-device-width) ....
asked by 16.07.2016 / 04:26
1
answer

Lightbox - Image Gallery

Everyone, good evening I'm picking up to make a very simple photo gallery. For example, I'm using the link site link to create a "Single image lightbox". I copied all the code to a new page and the effect did not rotate! I'm using Safari...
asked by 12.07.2016 / 05:17
1
answer

Validation input via HTML does not work

I'm trying to validate the input using required and customizing the error message with oninvalid however when I fill in the field I tried to submit without filling, for every character I type it shows the error message, ie the onchange do...
asked by 29.07.2016 / 17:00
1
answer

document.getElementsByClassName ("x"). innerText is not working

I'm trying to use document.getElementsByClassName().innerText but it does not replace the text contained in the class. This text comes from an echo php: echo "<div class=\"life\">$life/$maxlife</div>"; getting in the...
asked by 02.06.2016 / 15:48