Questions tagged as 'javascript'

1
answer

deleteRow Does not completely delete the table row

Here is my javascript function that should permanently delete a line: function deletaItemExtra(item){ var x = document.getElementById(item); x.deleteCell(1); x.deleteCell(0); document.getElem...
asked by 25.07.2017 / 22:53
1
answer

Generate values dynamically in a table

I am listing the number of devices saved in my system in a table, but they will not always have saved equipment, I can have an empty table, or im incomplete. What I need is to list the lists in that table. My table can have 5 or 10 values, ie al...
asked by 26.07.2017 / 22:06
2
answers

How to Reset Select2 and Multiselect Fields of the Form

I have a registration form where I reset the fields when entering a record with the following: document.getElementById(id).reset(); //Aqui passo o id do formulário The problem is that I now have a select2 multiselect that are not being...
asked by 06.10.2016 / 22:47
1
answer

Store user data after login AngularJS

I'm logging in through an AJAX request usually using $ http, right after logging in, my webservice returns the userid that logged in, so I make another request to get that user. With this user's data I store the User ID and Name. localStora...
asked by 23.08.2016 / 00:31
2
answers

How to create a menu that has an effect with jquery

insert the image description here I would like to know how to create a menu with jquery that when clicked opens a div like in the above example of Twitter.     
asked by 19.07.2016 / 21:05
1
answer

do a checkbox validation per row of a table

I have a page with a table where each row has 3 checkboxes and each column has 11 rows with 3 checkboxes, I needed to do a validation where at least one checkbox of 3 of each row is checked, and if on a row there are 3 checkbox unchecked after a...
asked by 22.07.2016 / 03:32
1
answer

Return value when $ .getJSON finishes

I have a directory with subdirectories, and the code checks if these subdirectories are valid by querying the settings.json of them, if it has (which is required to be valid), however $.getJSON does not work by returning the conten...
asked by 23.07.2016 / 04:28
2
answers

How to trigger / stop via jquery an animation in css (which is being triggered by css hover)

link Follow the example above that I created, from an animation hover css-driven link . But the animation only works if the mouse is on top of the element. I would like to start this animation via jQuery (without hovering) to get mor...
asked by 19.07.2016 / 22:02
3
answers

How to change legend text without knowing the id?

I have a <legend>texto</legend> tag that does not have Id and can have several on one page, I would like to change based on the ID of the previous div ex: <div id="div1teste"> <fieldset> <legend>te...
asked by 23.06.2016 / 18:54
1
answer

return of several errors via ajax

I have a problem with the error return via ajax, follow the link: Index.php <h4>Cadastro de Nome</h4> <form id="cadUsuario" method="post"> <label>Nome:</label><inp...
asked by 01.12.2016 / 14:00