Questions tagged as 'javascript'

1
answer

Converting View Values to Controller

I need byte[]Descricao , when sent to my view , to display the text as string for the user to manipulate within TextArea , when I click in save I need to be converted back to byte[] to that Controller finds...
asked by 05.04.2017 / 03:03
2
answers

Show different values in a table - JS / Html

I'm trying to show different tables according to what the user chooses. I have an example of a user who shared his code through the link: link The table is updated using the buttons below: $('#btn-load').click(function(e) { dt.load...
asked by 30.03.2017 / 23:35
1
answer

How to check two fields at the same time?

The following code is not returning false . When the reg2 field is empty and the reg1 field is selected, the function should return false , but this is not happening. Here is the code for review: Script that releases...
asked by 31.03.2017 / 20:20
1
answer

Uses Tree line by line

I have the following code: $('#tree1').treed(); I would like every row in my table to be a tree. But only the first line works. I'mtryingtousethe "BootStrap TreeView" and nothing calling this:    No html <table>...
asked by 30.04.2017 / 07:33
1
answer

How to add an object to an array inside another object

I have the following function that creates an object: function createDebit(name, value, paymentDate){ var debit = {"type": name,"value": value,"PaymentDate": paymentDate}; return debit; } This object that it returns I will add. on a...
asked by 01.05.2017 / 21:19
1
answer

multipleSelect jQuery does not update the received values in JSON dynamically

Can you explain to me why the jQuery multipleSelect () class does not update the received values via JSON ? For example, when I select a state, in my other selection field, the related cities of that state are filtered. When I linko the...
asked by 02.05.2017 / 17:12
1
answer

How do I increment days to a date on Ionic 2

I do not have much experience with dates in Javascript, so little with the mentioned frameworks: For now, I was able to display the current date on the front end using the following syntax: this.myDate = new Date().toISOString(); How can I...
asked by 30.04.2017 / 22:30
1
answer

How to make an input increment or decrement numbers with javascript

function Num() { var numero = document.getElementById('num'); numero = 0; document.getElementById('menos').click(function() { numero--; }); document.getElementById('mais').click(function() { numero++; }); } <...
asked by 11.07.2017 / 22:10
1
answer

jQuery validation with ajax does not work

When I click submit, it does not validate the fields, simply submit without submitting. Does anyone know what it can be? Obs : The form has an id form_redes_social and all fields have their id and names correctly. $(document).ready(funct...
asked by 29.03.2017 / 17:49
1
answer

How to load js style google analytcs

I'm developing a project where I would have to add only one tag on the client site and load js with all the functions. follow the example of google analytcs: (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime...
asked by 30.03.2017 / 14:49