I have read all the documentation about web components and according to the standards it is not possible to apply isolated CSS styles (shadow) to the elements that the user introduces within a custom element (light DOM), that is, the content tha...
I have the following question, is it a problem to use obsolete javascript functions?
As for example using the functions "escape" and "unescape" instead of "encodeURI" and "decodeURI".
Greetings.
Greetings, I need a text entry (text input) like:
<input type="text" id="txtNombre" name="txtNombre" value="" placeholder="Ej: Juan" required="" />
Do not let me put '. ' and ', '
Hi, I need to create a simple login form. I'm supposed to work without a database, and once the login accepts me, I redirect to the home.php page, but you can not directly access home.php . But they told me that it had to be done without a da...
How about, I'm trying to add an html file to a div
<!DOCTYPE html>
<html lang="en">
<head>
<title>Inicio</title>
</head>
<body>
<div> <!-- este div donde agregare un html-->
&l...
Good day, I have a modal which when clicking on an image does not activate, the truth already check the code I can not find the error. The code I use is the same one that I had already used on another occasion but now it does not work for me.
If...
I want to add the values of the same positions? Here's my fix:
var arr1 = ["1","2","3","4"];
var arr2 = ["2","1","3","4"];
The result must be:
var NuevoArreglo = ["3","3","6","8"];
I'm waiting for help.
I would like if someone could explain to me very easily what are the differences between these 'selectors' since I am struggling to understand them!
Especially among the querys and the get element.
Thank you very much!
HTML:
<a onclick="funcion(this)" value="4">Un Nombre</a>
JAVASCRIPT:
<script>
function(elemento){
console.log(elemento.value);
}
</script>
this is giving me back
undefined