Questions tagged as 'jquery'

2
answers

List generated with JSON data

I'm having trouble querying data from a JSON file within a list in HTML. I put my prototype in the Plunker . Script ... $.getJSON("list.json", function (json){ //alert("Carregou o list.json"); var states = json.states; var...
asked by 31.07.2015 / 22:25
5
answers

jQuery, duplicate click event

I saw here that no can do singleton in javascript . I have a problem with this, I have the following statement: $("#mSalvar").click(function(){ man.bSalvarClick(); }); This generates a duplicate record when the user clicks load t...
asked by 27.07.2015 / 15:40
2
answers

Layout with div diagonal and responsive

I need to create a layout and make the divs diagonal and responsive (100%), as in the example below: ContentfrominsidehastostayhorizontalAnyideas?Suggestion? JSFiddle for editing     
asked by 20.07.2015 / 16:55
3
answers

Append javascript

I have a modal that opens when I click on a link, in this modal I'm going to type an email that, when I click on add email , will add the email text in <ul> <li> below of the input . I have already made a code that follow...
asked by 12.03.2018 / 19:39
1
answer

online users and past time on site

How can I get the amount of online users on my site (instantly) using only PHP MYSQL and JQUERY? and respectively get the time the user spent on my site     
asked by 26.12.2014 / 03:41
2
answers

How to add value to the variable in jQuery?

I have a variable x that is written on the screen with initial value 0; I want each click of a button (be input or button same) in the HTML file, the value of that variable to be added 1; When added, I want the variable...
asked by 09.05.2015 / 03:18
2
answers

Jquery.get () as asynchronous or synchronous?

I've seen the official documentation here and I do not see that the default value is asynchronous or synchronous, I see no example how to use both (in the second code below). I know this works: $.ajax({ url: url, async: false, data:...
asked by 10.07.2018 / 01:42
2
answers

How to sum the elements of the same class of a group of tables

Hi, I have been given a correct answer on a very similar question, but I have missed this detail that I can not solve ... how to add the elements of the same class from a group of tables ... Example: JSFiddle HTML: <table>...
asked by 04.07.2014 / 00:02
3
answers

How to send my login and password via $ .ajax

Hello, I have a link where it opens a modal window (like an "alert") to enter the login and password. I'm using jQuery, the function $ .ajax {} to be more specific. I would like to know how to send my login and password in the header. What kind...
asked by 13.06.2014 / 00:31
2
answers

Mark / uncheck all dynamically created checkboxes

I'm creating checkboxes from the DB. I have another one that defines whether all the others are marked or not. When I run the first time it works fine, but the second one does not. HTML <div class="row smart-form"> <section cla...
asked by 10.03.2015 / 18:09