Questions tagged as 'jquery'

3
answers

How to open a new page when clicking on the table row?

I created a page that displays database data in a table, generated through the dataTables (Jquery) plugin. It works as follows: when the user clicks on the table row, it is redirected to an edit page. The line of code that does this redirect...
asked by 20.07.2016 / 00:38
1
answer

Accept comma in jquery / Javascript calculation

The system does not work when you type comma number, for example 2,14, 22,14 and etc ... only with end point 2.14, 22.14 and etc ... Below is the function I use. How to use function with the number typed with comma, do not present the error NaN...
asked by 21.07.2016 / 20:52
3
answers

How to send Json array from Jquery to PHP

I have a table where the rows constantly change order, I need to write this table to the bank. From the moment I will no longer modify the table I click on a "Confirm Grid" button, at that time saved that table in an array inside the jquery, and...
asked by 01.07.2016 / 14:29
1
answer

How do I return to the same place on the page after clicking the back button?

I am developing a portal, in it there are several news, when I click on one of them I am sent to a new page that treats this subject in full, my doubt is the following, I would like that after I click the back button I would return to the previo...
asked by 08.09.2016 / 15:40
1
answer

Show / Hide div using a 'radio button'

I need to check the status of my radio button so that if it is active on "Yes" , it opens <div class="camposExtras"> , if you click "No" It closes div , and this should be accessible at all times. My radio butto...
asked by 10.09.2016 / 03:39
2
answers

Add attribute to dynamically created object

I'm trying to add a data-id to objects that will be created dynamically, well the point is I want to do this as soon as the document or my object loads without the need to click etc, see the way I tried. For example: $(document).on('...
asked by 12.09.2016 / 16:40
1
answer

What is the difference between element and this in jQuery function $ .each

During the development I doubt the correct use of some tools, among them is the use in a $.each of jQuery element and this , see example: $(document).ready(function() { var $app = $('#app1'), $app2 = $('#ap...
asked by 09.09.2016 / 03:03
2
answers

Function does not rotate 2x

I have a function selectStep() that receives a onclick per parameter 1 or 2 , it rotates what was passed. The impasse is that I have two divs Content1 and Content2 , both with the same thing. But only the...
asked by 08.11.2016 / 23:57
1
answer

Remove div "Clone" in jquery

I have a div that can be cloned in jquery, I need to click on "Close div" to remove the cloned div when it is clicked ... Follow the code .. $(document).ready(function() { var linha = $(".engloba:first").clone(); $("#mais").cl...
asked by 10.11.2016 / 18:29
2
answers

datepicker does not work in dynamic form with Js

Well, I've assembled a dynamic form using JS. Within this form I have several input with class data , where I call the datepicker. But they do not work, can anyone help me with this? Follow the example below. Note that in non-dynamic in...
asked by 11.08.2016 / 15:39