Questions tagged as 'javascript'

2
answers

How to perform post without reloading the page?

How do I make a post for another page without having to go to it, I want to send the data and the return appears on the same page if it worked or not, but I do not know how to do it. I've seen something like this with JavaScript: $.post I d...
asked by 06.12.2017 / 18:15
4
answers

How do I validate the radio input of my code?

$(function() { $("#btn").click(function() { $("#c1").css("background-color", "white"); $("#c2").css("background-color", "white"); $("#c3").css("background-color", "white"); $("#c4").css("background-color", "white");...
asked by 01.12.2017 / 20:07
3
answers

pass the form name to jQuery

I have the following function that sends a form: function enviar_formulario() { document.search.submit(); } When I want to call the function I do this: <select name='busca' onChange='enviar_formulario(search)'>...
asked by 17.11.2016 / 13:52
3
answers

Combining arrays

Well, I'll try to explain a little better as you asked. I have 3 arrays simple, I'm using an example with 3 arrays , but in fact the arrays number is not set, since they are set from the user's choices, so I can have 2 to...
asked by 19.10.2017 / 21:13
1
answer

Browse HTML page and search for links

I do not know if the title got clarified but I would like to know how to go through the body of an html page and identify links by exceptions ... Let's say I want only links that have link in your url.     
asked by 14.10.2017 / 21:43
2
answers

Jquery click action does not work with duplicate items

I have two buttons on my page that serve to delete users, one I placed at the top of the table where it displays the users along with the paging and the other at the bottom, also along with the pagination. I put it like this to facilitate user b...
asked by 12.10.2017 / 21:07
4
answers

How to create function with SINGLE BUTTON to open several class together?

In the current function below, it opens an ID (title) on each click. And you can open several if you click each. It's great and working perfect (I think) But I need to have a single separate button that opens all together and close al...
asked by 27.10.2017 / 13:25
3
answers

Add option within optgroup

I want to add one in javascript inside an HTML created. <select name="testSelect"> <optgroup label="opt1"> <option value="3">Apples</option> </optgroup> <optgroup label="opt2"> </optgroup> </sel...
asked by 28.11.2016 / 00:04
1
answer

Angular - I can not display table data

I do not understand why it does not display the table data, it's identical to the page you were using to study. Code: <!DOCTYPE html> <html> <script src="/lib/angular-1.4.8.min.js"></script> <body> <div cla...
asked by 20.10.2017 / 12:37
3
answers

Go through inputs with jquery and check if there is a certain class in the input

I'm getting the inputs with the code var itensTabelaPresentation = ('#tabelaPresentarion > li'); and would like to go through them and go check if they have a certain class, how do I do this in a foreach? <ul class="nav nav-ta...
asked by 20.10.2017 / 19:24