Is there any way to capture information that the browser console is open? Currently I make a script that checks if the height of the browser has changed ... but in case it strips the browser console, or even, modify to the side, the script does...
I have a DataTable in my View Index that has the CEP column that needs to have a zip code mask (ex: 29780-000). Does anyone know how to do this using JavaScript?
<table class="table table-hover table-bordered dataTable table-striped wid...
Checking a contact form with success and error messages
Attention to the corrections I have made over time!
PHP CODE
if (isset($_POST['contact'])) {
$nomecomp = test_input($_POST["nomecomp"]);
if (!preg_match("/^[a-zA-Z ]*$/"...
How can I list an Array using .map ()? in the example below, I was able to list using a for loop, how can I get the same result using a .map ()?
var students = [
{
name: 'Anna',
grade: 6
},
{
name:...
Good morning!
I'm having a problem I'm trying to return the value of a radio field by printing on the screen to give a type of return to the user before clicking the send.
I'm currently testing on top of a script I found, but without much suc...
I have the following code:
var str = "141271999 243306211 172266710 172266710 172266710";
var regex = /[0-9]{9}/g; //Encontrar 9 números entre 0-9 e retornar todos valores (g).
var idsEncontrados = str.match(regex);
How can I configure my...
The question is exactly how do I "start" a value from within my JavaScript code so I can track whether the variable has the correct value.
I'm learning JavaScript in college and was writing a paper that takes the code down. However after some...
I have these two fields checkbox
<label class="control-label col-md-3" style="text-align:left;">Tipo de Pedido</label>
<div class="col-sm-3" style="text-align:left;">
<input type="checkbox" asp-for="Produtos...