Questions tagged as 'javascript'

2
answers

How to delete the last row of the table?

<table class="table"> <thead> <tr> <th>#</th> <th>Id.</th> <th>Descrição</th> <th>Qtd.</th> <th>Unitário</th> <...
asked by 20.06.2018 / 02:07
1
answer

problem with sum parseInt ()

I'm trying to add more "1" with parseInt () to the number but it always returns the original number with "1" next to it, for example 10 + 1 it returns me 101 (hit mizeravi). Note: I'm using split because in my full function I return to several d...
asked by 14.06.2018 / 19:20
1
answer

How to prevent popup blocking when post ajax return?

Follow the code below: JS: function OnSuccess() { var url = "/Controller/VisualizarBoleto/" + 00; window.open(url, "WindowPopup", 'width=668,height=780'); } Theproblemisnotdisplayingpopup,thebrowserisblocking.Iknowyoucanunbloc...
asked by 01.05.2017 / 23:54
1
answer

As per a field in an object in javascript?

How do I get a field in an object in javascript? var test = {} undefined test = 1 1 test.example = 10 10 test.example undefined console.log(test.example) undefined     
asked by 30.04.2017 / 19:15
2
answers

How to go back to the previous page when you click esc?

I have an item list in which to click on any item, and go to another page for item details. I would like to click the ESC button on the keyboard, go back to the previous page. Basically do the browser navigation function by going back to th...
asked by 08.05.2017 / 16:52
2
answers

Create JavaScript mask using jQuery

I have a client registration page in my MVC project requesting default data like name, cpf, dt nasc ... I need to create masks of these fields. After searching I came to the DigitalBush plugin. So I liked it and I want to adhere to it. How...
asked by 05.05.2017 / 02:25
2
answers

Leaving input in focus after javascript validation?

I implemented a simple validation to check if the input matches the rules and if it is negative it should be in focus to change the data, but the focus is not working, it leaves the next item in focus and not the one that was set in the javascri...
asked by 30.03.2017 / 14:22
2
answers

how to identify disable tag with jQuery

I have input with class form_campos , I need to make jQuery identify when input has tag disabled and change class to form_disabled .form_campos { height: 31px; width: 100%; color: #484848;...
asked by 09.05.2017 / 14:28
3
answers

Array associative State and City Combobox in Javascript

I'm trying to set up this associative array, in case the combobox is the state of São Paulo, you have to show 5 cities in São Paulo, if it's Rio de Janeiro, it shows the 5 cities of Rio de Janeiro. HTML <select id = "estados"> <...
asked by 15.05.2017 / 20:58
2
answers

Print more than one copy in javascript

Can I make an impression come out automatically on 3 copies? Same in that window below. window.onload = function() { window.print(); }     
asked by 17.05.2017 / 14:05