Questions tagged as 'html'

1
answer

Check if text belongs to the element and not to the child

For example, in the structure below I have a div that has a text and another div that also has text. How can I capture or check if a text is a child direct from a tag, not a child of another child tag: console.log(document.qu...
asked by 21.08.2016 / 02:14
1
answer

Compiling / Minimizing HTML, CSS and class files

On the CSS side I already compile and minify the CSS file. Doubts began to surface when I noticed that some sites work with a type of compile including HTML files. In other cases, such as Facebook, there are several classes with the name we...
asked by 29.11.2015 / 23:41
2
answers

Space Lock with REGEX

My code for blocking characters looks like this: $('#rg').on('keypress', function() { var regex = new RegExp("^[ 0-9]+$"); var _this = this; // Curta pausa para esperar colar para completar setTimeout( function(){...
asked by 02.12.2015 / 17:52
1
answer

How to highlight a menu item by clicking Back or Next

This is possible, I know I'm on the way, but before I decide to see with the community what can be done in this case, and then take the right direction. Code function Selecionado(tag){ var item = document.getElementById('menu'); v...
asked by 17.06.2016 / 08:50
1
answer

Problem with mask on form

I'm using the Masked Input Digitalbrush plugin to format my phone field in the form, so I tried this did not work, can anyone help me? <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></s...
asked by 16.06.2016 / 21:23
2
answers

Select options line break that contains a very large value

Is it possible to break the line of a very option ? ex: <select> <option>texto muito extensp<br/>restante do texto</option> </select>     
asked by 20.10.2015 / 21:21
1
answer

Bring the return of a function to a variable of another function

I would like to see if there is any way to do this: function trazerNumero(){ return 7; } function mostrarNumero(){ numero = trazerNumero(); alert(numero); } $(function(){ mostrarNumero() }) I know you're going to say tha...
asked by 10.10.2015 / 06:28
2
answers

Responsive side menu with button

I have a side menu: Iwouldliketoputabuttontohideandshowthismenu,andthatwhenIdecreasetheresolutionappearsthisbuttonsothatIcandisplayit.HTML:<divid="wrapper"> <!-- Sidebar --> <div id="sidebar-wrapper"> <ul class=...
asked by 02.10.2015 / 19:24
2
answers

Jquery consuming Web Service Rest

I would like to list the json's ceps, follow it: [ { "id": 1, "nome": "Hospital Da Mulher", "cep": "60508090" }, { "id": 2, "nome": "Hospital Maria jose", "cep": "2" } ] And this is where I'm calling you:...
asked by 30.10.2015 / 02:35
1
answer

How to make a transition button similar to Google Translate for a mathematical operation

I'm creating a small calculator that converts Kilograms to Pounds and Pounds in Kilograms . My goal is to insert a value into a first input and display the result in a second input that follows. For example: <input...
asked by 30.10.2015 / 02:51