Questions tagged as 'javascript'

2
answers

How to do? php echo $ i? be random between Y and X?

I'm developing a layout, I need your class in the div, be random between two names, I need a javascript to do this, can anyone help me? Ex: <div class="left"><div> <div class="right"><div> <div class="left"><...
asked by 10.04.2018 / 22:54
2
answers

Add element after another with jQuery

How can I add another <li> ... </li> tag after the last one with Jquery ? I have installed a plugin "Jquery Custom", and would do it there. <div class="col-sm-5 col-md-5 social-media style-1"> <h3 class="widget-...
asked by 10.04.2018 / 23:11
2
answers

onBlur (JavaScript) within a Loop For PHP

I have the following Java code: <script type='text/javascript'> function Calc(){ var qnt = document.getElementById('qnt_saida').value; var vlr = document.getElementById('vl_unt_org').value; var tl = (qnt*1) *...
asked by 09.04.2018 / 22:58
4
answers

Check index in array of objects by property

When I click on an element, I get an id. With this I go into an array and find out which object has the same id, and I need to remove all objects with the same id. function onRemove(city) { for (var i = 0; i < array.length; i++) {...
asked by 10.04.2018 / 13:49
3
answers

It is possible to assign the value of a JavaScript variable, to one in ASP

I would like to know if it is possible to assign a variable in JavaScript to ASP ? Example: Dim ASP var JS; ASP = 1 JS = 2; ASP = JS Response.Write ASP ' saida deveria ser 2 e     
asked by 17.06.2014 / 14:06
2
answers

undefined is not a function in Node.js using Mongoose

I know that this error can have several causes, but I can not know so far. I have a function to save a Document in my MongoDB and I am using callback for this. The code is executed until the new document is saved, after that I have an error. The...
asked by 22.07.2014 / 20:39
1
answer

The jquery .Keypress Event is not being activated

In the table when pressing the enter in place of activating the javascript event is being inserted a break line, ie the text function of enter not the event. // Função $(function() { //Função cli...
asked by 12.03.2018 / 18:05
1
answer

Show localstorage data

I created a code that stores the data in the localstorage, but now I need the data that is in the localstorage to appear on the screen. So I want to know how I can do this. (Note: I'm developing a form) (html) <button id=""cadastro" oncl...
asked by 13.03.2018 / 20:24
1
answer

API error Table FIPE

I am using an API to consume data from the FIPE table for a form's fill-in. I can consume the field of Tag and Year , however, the error field. Documentation link: link Follow the code: <!doctype html> <html> <head...
asked by 09.03.2018 / 01:32
1
answer

Call action Get that returns a view by jquery ASP.NET MVC [closed]

I need to open the view create when I click on a button, how to do this for Jquery?    Button <div class="col-md-3"> <button id="btnNovo" class="btn btn-info form-control" style="width: 200px"> Novo </button>...
asked by 24.10.2017 / 16:59