Questions tagged as 'javascript'

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

How to get parent elements except some in native Js

Let's say I have: <section id="ele-section1"> <div data-section="1"> <div class="not_this"> <div> <div class="ele2"> <div id="ele3">...
asked by 24.06.2016 / 14:20
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
2
answers

Decimal format in monetary value [duplicate]

    
asked by 20.08.2015 / 04:31
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
1
answer

Get url with Javascript without GET

I'm getting my url like this: var url = window.location.href; I have the following return: link . But I do not want the part of GET, I wanted to get the url like this: link How could I do it?     
asked by 08.12.2015 / 17:17
1
answer

Creating a State Machine without JavaScript libraries

I was looking at how to program a state machine on google and I came up with several results that led me to libraries geared to such, but I would like to understand how it is processed and how to get to > state machine simple and functional....
asked by 03.12.2015 / 01:31
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