Questions tagged as 'jquery'

1
answer

Override the preventDefault () method

Is there any way to "undo" the preventDefault() method? I have this little code that solves this, but I wanted to know if there is any more efficient way to do it. var $form = $('form'); $form.data('working', false); $form.data('canSubm...
asked by 07.08.2015 / 12:23
2
answers

Sending form and array out of form via post

I have the following problem: I need to send via post the data of a form together with the data of an html table to which I add array in javascript. Unfortunately, I have no idea how to proceed in this case. I ask colleagues to...
asked by 24.06.2015 / 02:47
1
answer

Return a variable value with ZeroClipboard

I'm using this link library to copy text by clicking the button for the user's clipboard. I'm trying to find a way to change it a bit, but to no avail. The basics of using the library are: <html> <body> <div id="d_clip_butt...
asked by 04.08.2015 / 18:37
1
answer

Do not receive negative numbers in an input

I have the following code: link $(document).ready(function () { $('input').keyup(function() { var $th = $(this).val(); $th = $th.replace(/[-]/g, ""); $(this).val($th) console.log( $(this).val()); }); }...
asked by 29.06.2015 / 11:06
1
answer

Organize content and make "pagination"

I would like to set up a system that would automatically paginate just jQuery / JavaScript with the rows I get. The server can return 1 row as it can return me 1 million, and jQuery needs to organize those rows by hiding all the rows minus...
asked by 02.07.2015 / 03:14
1
answer

Invalid field focus jQuery Validate

I'm using the jQuery Validate library to do some validations on a form and would like to know if anyone knows how it could make the focus always stay in the field, in case it is invalid. Currently, it exits the invalid field but does not let it...
asked by 23.06.2015 / 16:30
1
answer

Postback in dropdownlist with jQuery or JavaScript

How to give a postback or clear the selection of the dropdownlist so that it returns to the pre-state state using jQuery or JavaScript? I need to clear the selection by clicking on a p tag and calling the toggle () method. My code is this: <...
asked by 05.06.2015 / 18:57
1
answer

Problem with sending posts via Ajax

I am creating a chat with websocket , when I send a message it saves the message in the database. This is the example of how it sends the message post ButtheproblemiswhenIsendajavascriptfunction(I'mtryingtodeletejavascriptinjectionininputd...
asked by 07.06.2015 / 04:59
1
answer

Sliding divs for content

Someone could help me with boxing with sliding content and by clicking on the arrows the Div is pushed and thus showing the other box as in the example of the image below the globe. I already did with java script but I do not go as I wante...
asked by 09.10.2015 / 19:19
2
answers

How to put a "loading" image after validation and submit?

I have the following situation, a form with Jquery validation working. However, since I am sending some attachments in the form via email, I wanted to present an image for the user to wait for. The problems started there. If all form field...
asked by 11.05.2015 / 16:50