Questions tagged as 'jquery'

1
answer

Concatenate in loop with jQuery

I need to concatenate with jQuery all input values that have classes that start with "item_". I'm using the function below but it did not work. $(document).ready(function() { $('button.vai').click(function(){ var item = $("input[cla...
asked by 17.09.2015 / 03:54
1
answer

With Jquery take all the elements

Hello, I wanted with Jquery to get all product_payment from a store and change. Changing: At sight R $ 137.66 with a discount or 12x with interest of R $ 13.69. For: At the sight R $ 137,66 with a discount or 12x from R $ 13,69. It has t...
asked by 14.09.2015 / 15:07
1
answer

Change HREF of a link if url does not meet some requirements

I have a question. I need to force the page 1 value of a page to a specific URL. I could not figure out how to copy the code of the plugin I'm using, so I decided to make a hint so I could put the system into production. I would like, via JQUERY...
asked by 20.06.2016 / 02:39
1
answer

Jquery beforeunload is called when I click on link

I want to perform a function only when the user closes the browser, but when I click on a link the event is triggered anyway. $(window).bind('beforeunload', function(e) { $.ajax({ url: "php/phpPerfil/brownserClosed.php" }); });...
asked by 13.08.2015 / 23:12
1
answer

Passing data from an HTML table to the ASP.NET MVC controller

I am trying to pass data from an HTML table in my view to my Controller. The data in this table is dynamically added. It opens a BootStrap Modal, where the user informs some data, when clicked the button Ok , the data is added to the tabl...
asked by 07.12.2015 / 19:37
2
answers

File Download via Ajax

In my Asp.Net MVC 4 project, I have a View with a button and the following script: <input type="button" value="Teste" id="baixarArquivo" /> <script> (function () { $("#baixarArquivo").off("click").on("click", function () {...
asked by 01.06.2016 / 14:44
2
answers

Catching CSS classes interspersed using jQuery

I need to know how to get interspersed CSS classes. Well I'm going to do a loop and I need to get the classes in a certain number. The code is as follows: <div class="box"></div> <div class="box"></div> <div class...
asked by 05.06.2016 / 22:46
1
answer

Ajax and php protection

Using ajax in my case, can it bring some security flaw? If so, how do I solve it? javascript: $(function() { if($('#login_submit').length !== 0) { $('#login_submit').on('click', function() { if(!$('#login_submit').hasCl...
asked by 21.07.2015 / 00:43
1
answer

Drag and Drop HTML Components with jQuery

I'm developing a project for my academic course and I have the following code: // Esse é um json que vem do banco de dados var Componentes = {"input": {"Label": "Textbox","Tag": "input", "Attributes": {"type": "text"},"Class": "form-co...
asked by 17.07.2015 / 23:06
2
answers

How to select an element in a jQuery selection

For example, I have the following code: var $els = $('elementos'); // cerca de 8 elementos selecionados Then from this group of elements, I want an element that has the class active . I tried something like: $els.find('.active');...
asked by 17.07.2015 / 20:08