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"><...
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-...
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) *...
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++) {...
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
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...
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...
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...
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...
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>...