Questions tagged as 'javascript'

2
answers

Function Jquery to select tab with required fields not filled

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...
asked by 04.10.2018 / 22:11
1
answer

Input disable not found in serialize

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...
asked by 04.10.2018 / 20:59
1
answer

Call php function using onblur (complete)

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&...
asked by 07.12.2018 / 23:48
1
answer

Dynamic pricing

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...
asked by 08.12.2018 / 13:23
1
answer

Send image between pages javascript [closed]

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?     
asked by 28.09.2018 / 18:21
2
answers

How do I manipulate 3 Checkbox in Angular 2?

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...
asked by 29.09.2018 / 18:27
1
answer

How to parse from one list of objects to another?

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...
asked by 22.09.2018 / 21:16
1
answer

how to add a semicolon in Animated number that activates with scrolling in javascript

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...
asked by 24.09.2018 / 18:15
1
answer

Serialize form does not handle the table

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 =...
asked by 11.10.2018 / 13:58
1
answer

How to use function parameter as an attribute of an object?

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: [ {...
asked by 10.10.2018 / 18:09