Questions tagged as 'jquery'

1
answer

Passing an array from a form to PHP via AJAX

I have this form:                                                        jQuery (function($) { AddTableRow = function() { var newRow = $("<tr>"); var cols = ""; cols += '<td><input type="text" name="dados[]...
asked by 26.12.2016 / 17:09
1
answer

Is there any difference between codes A and B below?

Code A $('#tantoFaz').on('click', function() { /* ....... */ }); Code B $('#tantoFaz').click(function() { /* ....... */ });     
asked by 08.04.2017 / 00:55
1
answer

How to create fields dynamically when selecting a value in the checkbox?

In this script below it counts checkbox checked. How can I make it count, also add new fields <input type="text"> according to the amount of checked tagged For example: I marked 5 box, then show 5 fields <script type=...
asked by 05.01.2016 / 01:41
1
answer

Sort by number with DataTables

I have a problem with the DataTables plugin in the order of numbers. I have a list of numbers: 1 2 3 4 ... 10 11 12 The problem happens because of the digits. It sorts type 1 10 11 12 2 3 4 ... The correct order would be from 1...
asked by 01.01.2016 / 18:08
1
answer

Checkbox value in field input hidden [duplicate]

I'm having a problem with jQuery checkbox manipulation. I have several fieldsets with checkboxes, and I want that when the person clicks on a check the check value is added to the input hidden of each fieldset. I wanted to know how I get th...
asked by 05.01.2016 / 15:57
1
answer

Pick a plugin selector

I'm trying to create a plugin but I can not get selector , and it was still removed from version 1.9. If I use $(this).selector in the plugin, it returns a string #div #elementoA, #div #elementoB . I've already tried to u...
asked by 08.12.2015 / 08:38
1
answer

Date in odd fractional form 0.00xxxxxxx

I get this date from DB:    0.002976190476190476 I would like to pass this format: dd/mm/yyyy , using javascript pure or jquery . How do I do it? Here is the ASP that mounts the select: strsql = ""...
asked by 04.01.2016 / 18:01
1
answer

Capture index of dynamically created elements

I intend to create a seemingly simple function. My code is this: var coordenates = $(".coordenates"); var add = $('.add'); var remove = $('.remove'); var newCoordenate = '<div class="coordenates"><input type="text" />, <...
asked by 17.12.2015 / 02:06
1
answer

How to put 3 slides together in Bxslider?

I could not do it alone, I wanted your help. I would be grateful if anyone could solve this problem for me. This is the photo on my slide. ThisismyHTMLcode. <div class="main"> <div class="slideshow"> <div class="s...
asked by 14.12.2015 / 03:58
1
answer

How to add the logo in the fixed menu after a certain scrolling on the page?

Like this site for example: After fifteen . Just like in the photo, I want the logo to come and from a certain scroll, the 'new' menu appears along with the photo. I do not know how to put the photo just in that scroll. Would I have to create t...
asked by 17.01.2016 / 10:28