I wanted to know if there is a way to delete a row from a table using jquery where the ids are ordered correlatively keeping the order. This is, for example:
<tr id=1>
<tr id=2>
<tr id=3>
If I delete row 2 it should look l...
Good, we have seen a bit of object-oriented programming in javascript and have sent us to do an exercise to use inheritance. You have to calculate the volume of a cylinder in which we have to use the radius of a circle from a previous exercise....
I have the following code (very simple)
if (document.getElementById(id).checked == false)
document.getElementById(id).checked = true;
And it works perfectly, but it shows the following error
As I said before, it works. But I n...
I'm designing a web app, a cloud. When I upload a file to the database of the one ID, I show the file in question by screen. Up here without problems, the problem comes to me when I want to perform X action on that file. I have disabled the righ...
Good morning,
I am somewhat confused since I tried to make a confirmation modal before going to a link (basically before deleting an item from the DB, asking if it is safe) using sweetalert2 and I get several errors that I can not / I can sol...
I have the following block of code:
data.split('\n').map(l => {
if (/^videoW/.exec(l)) {
vidConf.videoW = l.split('=')[1]
}
if (/^videoH/.exec(l)) {
vidConf.videoH = l.split('=')[1]
}
if (/^videoT/.exec(l)) {...
Good afternoon,
I have a code that works with an id="confirm" so you have to confirm before deleting a record from a CRUD using datatables.
The problem is that since it is a crud, it can not work with ID's since there would be several elem...
Simple question of a newbie, I do not understand why the numerical 0 gives me a pair in this case, I want it to be 0 , '' , isNaN me% 'Por favor, introduce un valor numérico válido' :
let numeroUsuario, modulo;...
I'm doing a calculator in which you fill in the fields and do the operations, but how do I do it so that, if the input has no value, javascript interprets it as 0?
var button = document.getElementsByTagName("input")[2];
var input1 = doc...
I'm working with HTML5, CSS, Bootrap and JQuery. The problem is not to change the color to the div, what I can not do is to execute the action until you click on one of the divs.
When you click on the payment button for extra hours, take the col...