Questions tagged as 'javascript'

1
answer

put variable in jquery selector

I looked at other similar questions, but their answers did not help me because the selector I'm using is different. I want to get a tr in a tbody of a table , using the nth-child(n) selector but in n I want to put...
asked by 03.01.2017 / 19:47
2
answers

Finding contents of a td from a class

I have the following lines inside a table: <table id="table_marcas"> <tr> <td>Nome</td> <td class="template">Óleos</td> <td class="template">Veículos</td> <...
asked by 20.12.2016 / 19:15
1
answer

How to clear input? [duplicate]

NOTE: url and number types mainly but if you want to put others tb without problems) Preferably in pure Js! I've tried things like this.value ''; and they did not! NOTE 2: I've read Removing or clearing value of the input file? and...
asked by 29.12.2016 / 18:46
1
answer

Why are you giving "Uncaught ReferenceError: getSetorObj is not defined"?

You are saying that "getSetorObj" is not defined, but the method exists and is in the Map class. The error is at line 38 of the script. $(document).ready(function(){ var jogo = new Jogo(); jogo.init(); }); function Setor(X, Y){...
asked by 15.01.2016 / 18:40
1
answer

Javascript Error button in IE9

I'm having a browser problem only in IE9, which occurs when I load an attachment and when I click the Add Attach (POST) button, as picture below: functionuploadResponse(frameId){$.ajax({type:"POST", url: "/Turma/AtualizarGridAnexo",...
asked by 18.12.2015 / 12:13
2
answers

Pass video url into Modal - Jquery [duplicate]

I'm passing the url into the embed ( #meuid ) like this: <script> $('#treinamentos').on('show.bs.modal', function (event) { var button = $(event.relatedTarget) var nome = button.data('nome') var video = but...
asked by 08.01.2016 / 13:43
2
answers

Numeric mask for date field in JavaScript [duplicate]

I created a Date field and with the Javascript function I am masking it to date, but how to use only numbers and not text? function mascaraData( campo, e ) { var kC = (document.all) ? event.keyCode : e.keyCode; var data = campo.va...
asked by 14.01.2016 / 20:56
2
answers

JavaScript and Php, Delete Message

Good afternoon! Please, can you tell me where I am going wrong in this code? the delete procedure does not work when I pass the parameter in onclick Thanks! Button <!-- repassando o id codificado através do get --> <form method=...
asked by 03.06.2017 / 18:28
1
answer

Animation with RequestAnimationFrame - Javascript

Based on the OneDrive site, where you have a drop-down menu on the left side that when clicked on the OneDrive div it loads the menu down; and if you clicked it back in the first state, which is the collapsed menu. I'mtryingtomakethisanima...
asked by 01.10.2015 / 21:21
1
answer

I have one form inside the other and I can not get the most internal form

Here is an example of how the form is, it is much more complex than that, it already has almost 10 years of use and I do not have time to modify everything. But I need to have access to the form that is inside the other, that is the form that is...
asked by 27.04.2017 / 14:32