Questions tagged as 'javascript'

3
answers

Placing Parcel Value Dynamically

I have a Form with 3 input 1 Total value 2 parcels 3 Par Value I need to fill in the total value and the number of parcels, and fill in the parcel value. Does anyone have a solution in JavaScript or Jquery ??     
asked by 12.09.2017 / 22:42
1
answer

Select with state and city search

I'm here creating a form where the person should choose the state and after selected the list of corresponding cities is loaded in the other select, I'm using a ready library cities-states-js , so far so good, only that I had the idea and also...
asked by 05.10.2017 / 15:47
1
answer

Uncaught Error: [$ injector: modulerr] for angular-material.js

I'm having a problem using Angular Material JS . I have my index with the references for the Angular-Material project. <head> <!-- AngularJS Material CSS using GitCDN to load directly from 'bower-material/master' -->...
asked by 06.08.2017 / 22:03
2
answers

Add Checkbox fields in Loop

As I am not aware of javascript I would like a little help on how I can make this script work within a while and cause it to also add the decimal places outside the loop. It works the most inside the bug how to fix this while ($row = $ret...
asked by 19.06.2017 / 03:07
1
answer

500 (Internal Server Error) when setting action as [ChildActionOnly]

I want to block partialview url via url using [ChildActionOnly] . Issue problem, follow code: HTML: <li style="cursor:pointer"><a id="button_id">Criar</a></li> JS: $("#button_id").click(function ()...
asked by 19.06.2017 / 15:52
1
answer

.Each in two elements with values in different variables

I have two elements, EndTime and StartTime that are two inputs and both have the class time. With each one you need to have the value of the two separated into variables. $('.hora').each(function (){ var horaFinal = $('.horaFinal').val();...
asked by 21.06.2017 / 15:34
1
answer

How to close a modal when clicking outside it?

I made a modal and need it to be closed by clicking outside it or the close button. I already tried to do with onblur only that it does not work, it only serves for tag input. How should I do it? function abre() { document.getElementBy...
asked by 19.08.2017 / 15:16
3
answers

Validate file size, file size, and file type

How do I validate the file size, the size of the image, and the file type that will be used in Upload before submitting? In order to upload I use the function below in PHP, but the validation happens only after sending the form through POS...
asked by 19.08.2017 / 03:53
2
answers

I need to add checkbox values (additional snacks)

I have the following code, and I need to add the values of the checkboxes instead of concatenating them. Can anyone help me? <!DOCTYPE html> <html> <head> <style> #out{width:350px;} </style> &l...
asked by 13.06.2017 / 17:54
1
answer

Putting delete method inside an append Jquery

I have the following situation, I make an append and inside it I need to send a delete method, to treat it in the web service I'm having doubts, I've already tried to create a form inside, but it does not work, detail if I put the link " link '...
asked by 13.06.2017 / 15:52