Questions tagged as 'jquery'

0
answers

How to submit an image by JQuery, via $ .POST?

Friends, good afternoon! I'm creating a system where the person has to send an image to save to the database, but as I'm making the request via JQuery, it's giving the error message that I can only send jpg, png and gif files. From what I've bee...
asked by 07.10.2016 / 15:30
0
answers

JS only works by refreshing the page

Click the button: <td><%= link_to 'simulacao', simulacao_path(simulado) %></td> <%= form_tag('/correcao', method: :get, remote: true) %> <%= button_tag 'Corrigir', class:'btn btn-primary btn-lg' %>...
asked by 08.10.2016 / 17:32
2
answers

How to delete a selectbox with JavaScript one by one

Hello ... I have a button that when clicking the button "add question" "clone" my selectbox that is like "Select Question ...". With each click it adds another one always incrementing id so that it is different. I wanted to do the opposite, like...
asked by 04.10.2016 / 22:33
2
answers

Parent menu and submenu active after selecting element

I would like help solving a problem: I have a menu that contains submenus, and I would like it to be selected when the selected menu is active and if the submenu is selected, the parent menu and the child menu are active. I made a short snippet...
asked by 06.10.2016 / 20:07
1
answer

Get element in a json array

I need to get the authorDisplayName element of this array json . It is the return of a ajax request. How do I get only the element with jquery or javascript ? "kind": "youtube#commentThread", "etag": "\"I_8xd...
asked by 05.10.2016 / 21:44
1
answer

How to display XML data in an HTML table

I'd like the XML data to be displayed in a common HTML table with TR and TD , because with the code I'm using the information is confusing. Here is the code I used: $(function(){ $.ajax({ url : "livraria.xml",...
asked by 07.11.2016 / 01:43
1
answer

Scroll JavaScript in div and paste title

Let's go to the problem: I have the following code: <span id="título">teste1</span> <div id="div_scroll"> <div id="dv1">teste1</div> <div id="dv2">teste2</div> <div id="dv3">teste3</d...
asked by 07.11.2016 / 01:57
1
answer

open link in new tab with JS or Jquery [duplicate]

I set up a site using Mobirize and it has a Facebook icon that when clicked you share the site in your face as a post. I would like it instead to open a new tab with a specific page of Facebook. In the case what opens the popup is the code  ...
asked by 07.11.2016 / 19:39
0
answers

Help to select mount in bank

Hello, I need to set up a query in the database that returns a set of records but since I do not have as much experience in the database I would like you to give me some help. It is as follows: I have the tables tb_partida (id, flag_active,...
asked by 07.11.2016 / 22:44
1
answer

Page does not take JS files later

I have a problem, I searched the internet and I did not find it, I saw that there is a similar question here in the Stack, but it did not solve my problem. It is as follows, I have several files in JS, such as one of "Show More", where he sea...
asked by 08.11.2016 / 02:25