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...
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...
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(){...
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...
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...
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...
I have a side menu:
Iwouldliketoputabuttontohideandshowthismenu,andthatwhenIdecreasetheresolutionappearsthisbuttonsothatIcandisplayit.HTML:<divid="wrapper">
<!-- Sidebar -->
<div id="sidebar-wrapper">
<ul class=...
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:...
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...