I use the tab of bootstrap and required of dataannotations ,
but the following happens, you do not know the fields of the required, when it is not in tab of it, for example, I am in tab 1, and I conclude, howeve...
If the form I have is validated, I disable the form, like this:
$("#Editar :input").prop("disabled", true);
But I have function to serialize, and if I have forms disabled, they can not find the value. Is there any way to disa...
I have an onblur event to call a function and this function has to call a php class to be able to compare what was typed in the input with what is in my DB, but I do not know how to do that using jquery, how do I do this?
HTML
<html&...
I'm developing a web app sales system, where you can put multiple products in 1 sale, increasing inputs dynamically.
It calculates the price of each product by multiplying by quantity automatically, but I can only do this in the first...
I have an image that was uploaded by the user and I need to upload it to another page to display on the screen before sending it to the database.
Any suggestions how to do this?
I have 3 Checkboxes. The first option is bread, the second option is fish and the third has salt. I want to use Tamplate forms and not reactive forms. Can someone help me?
<form #form="ngForm">
<label>
<input n...
I have a task list stored in an object items , I want to parse this list so that everything with open status is stored in the openTasks variable and everything is with status completed is stored in completedTasks .
I ev...
I am a layperson in javascript .
My boss dreams of putting such a "timer" on the site (animated numbers that trigger a machine-like movement by counting the numbers, which activate when you reach the window through the scroll).
But I can...
I have this function to check if something was changed in formulário , apparently it worked perfectly:
$(function () {
var init_form = $('#editarproduto').serialize();
$(':submit').click(function () { window.onbeforeunload =...
Hello!
In order to reuse a function I'm doing the following:
View 1 has this object:
obj: [
{"fruta": "maça", "valor1":1},
{"fruta": "banana", "valor1":1},
{"fruta": "pera", "valor1":1}
]
View 2 has this object:
obj: [
{...