Questions tagged as 'jquery'

2
answers

Doubt with dynamic field creation with jquery + php

Hello! I'm doing a simple program for managing my beers and sales. In the order view, I was able to add a new line to add a new item to the order.    Fields: id_item (select) | id_lote_item (select) | quantity (text) | unit value (text) |...
asked by 14.06.2017 / 08:33
1
answer

Clicking the button makes two ajax requests, how to avoid it?

When I click the "Hire" button it makes two requests on the server at once, how can I avoid this? <button type="button" class="pagar" id="10.00">Contratar</button> Ajax $(document).on('click', ".pagar", function () { preco...
asked by 26.06.2017 / 22:12
1
answer
2
answers

Send data to an ActionResult from a Controller other than the current one

How to make a post sending data to a ActionResult of a Controller different from the current%? Example: I have a link called lnkEnviarDados and I need to make a post on the page by sending the contents of the vari...
asked by 11.06.2017 / 15:17
2
answers

How to create an event where when user press the space key something happens?

So far I have only this code snippet: personagemPular.on("keyup",function(){ I wanted to change this keyup by pressing space. And I'm also using a text area in HTML to receive keyboard input, how do I get it from anywhere on the screen?...
asked by 09.06.2017 / 20:22
1
answer

Needed to double-click the button to add input dynamically with jquery

I have the following script: $(document).ready(function() { var i = 0; $("#add_row").click(function() { if(i <= 5) { $('#addr' + i).html("<div><input type='text' name='cirurgia' value="+i+">&l...
asked by 23.11.2017 / 02:33
1
answer

Get html from a tag, including the tag itself

How would I get a part of my html along with the tags? For example: I wanted to get this span inside the TD, in case I wanted it all together, until the tag <span> , got it?     
asked by 23.11.2017 / 01:55
1
answer

Field validation via jQuery correctly

I have the following validation for the TextBox of justification. But even returning the message and clicking the OK button the system validates the deletion. That's right, you should return the message and focus on the justification f...
asked by 18.08.2017 / 16:02
1
answer

JQuery event does not execute after click

I'm creating an image gallery with JQuery and PHP. All functions (upload, load, load more) work normal except to delete the image. The event should occur when the class button "button-remove-image-gallery" is pressed, but nothing happens, nor...
asked by 18.08.2017 / 19:09
1
answer

Increment dynamic input name with jquery

I have a table that generates the row dynamically when I click a button. I need names to be incremented when generating a new line. Ex: name="product1" name="amount1" name="price1" name="total1" changing only the number (1, 2, 3 ...) How could y...
asked by 30.07.2017 / 18:55