I have a variable that the server gives me with a value, I need to know if the number is par or odd , but without using %2 :
$.ajax({
url:'/numero',
type:'POST',
success:function(num){
// ¿Qué hago con num para sab...
The title does not explain much, but I have a code that gives a number to the class, because it is in foreach , it would be
<button class='accept ".$accept++."'>Accept</button>
the $ accept ++ is added one for each time...
In my company I had the requirement to decrease the number of columns to 3 and not show 5 rows but 16, the thing is that I do not understand how they are telling the code to only show that number of rows and columns, Here it happened to you as i...
the browser throws me this error when trying to consume API, I do not know what it can be:
Failed to load
link : No
'Access-Control-Allow-Origin' header is present on the requested
resource. Origin 'null' is therefore not allowed ac...
I have the following button which sends to a JS function and enters correctly
<button class="btn btn-primary" onclick="filtrar()"><i class="fa fa-filter"></i> Filtrar</button>
This is my JS function...
Hello good afternoon, I have a problem getting data sent by AJAX to a Controller
Data sent by AJAX
var txtDateInicio = document.getElementById('date_inicio').value;
var txtDateFin = document.getElementById('date_fin').value;
var parametros...
I have a form and I want that when the visitor enters their data and they "send" it will not be deleted if they are still there and can decide whether to send another email with the same data or start deleting them to write others, as achieveme...
I contact you because I am quite blocked with this problem:
<?php
if (!is_user_logged_in()) { // Display WordPress login form:
$args = array(
'echo' => true,
'form_i...
from a blade template I try to make an ajax call to an api the code I have is this
@section('custom-js')
<script type="text/javascript">
$(document).ready(function(){
alert('test');
$('#edit').on('submit...