Questions tagged as 'javascript'

1
answer

as I do so that the image also takes me to the post

I am using blogger and the title of the post obviously takes me to the post when I clicked, but the image does not, and I want it to do it too, this is the code: title code of the post: <b:includable id='postTitle' var='post'> <a...
asked by 04.07.2018 / 06:44
1
answer

About-Writing data

I'm filling an html table with data that throws me a query with ajax. The call is initialized by a select depending on the selected data: <select name="verListaDe" class="navbar-form navbar-left"> <option id="all" value="1"&...
asked by 09.07.2018 / 16:27
2
answers

Help How to fill a dataSet in javascript?

I have the following line of code var registro1 = [ "1", "Perez", "Lopez", "Luis", "Martin", "22" ]; var registro2 = [ "2", "Gonzales", "Jimenez", "Reyna", "Maria", "18" ]; var registro2 = [ "3", "Rodriguez", "Dominguez", "Luis", "Fernando", "...
asked by 11.07.2018 / 04:12
1
answer

Get a value of a fieldset with javascript

I am trying to get the values that a user chooses from fieldset to then show a alert that shows the price depending on the chosen option. function formAlertCompra(){ var year = fieldset.getElementById('año').value; var r...
asked by 10.07.2018 / 02:10
2
answers

Sum of numbers with javascript and php

Please, I need a little help, I am trying to add the values returned by a foreach ($ getDesEsp as $ itemListaDesEsp): but I always add the last value. in this case I have 4 records but I always add the last one. I'll leave my code please ... Exc...
asked by 27.09.2018 / 15:05
2
answers

When sending the form, indicate whether or not the input contains the word "EXCELLENT" HTML5

I'm trying to make sure that when the user submits the form, it indicates whether a textarea has the word "excellent" or not in it. My code: <!DOCTYPE html> <html lang="es" dir="ltr"> <head> <meta charset="utf-8"...
asked by 10.07.2018 / 18:21
1
answer

Clear input type text when clicking the button

Hello, I need that when I click to send the data I delete what I write but without using a reset button this is my code of my button THIS IS MY HTML AND JAVASCRIPT <div class="col-sm-4 form-group"> <label class="control-label">...
asked by 27.09.2018 / 16:47
1
answer

How to filter with ng-repeat in AngularJS

How can I make a filter for those items that have offers var app = angular.module('myApp', []); app.controller('myCtrl', function($scope, $http, $document) { $scope.items = [ { id: 0,...
asked by 27.09.2018 / 13:26
2
answers

By clicking on the counter button NaN returns me

I'm doing a button I like it, and I've had problems adding + 1 when you click on it regardless of how much is already in the counter, because when you bring the products and since the data is dynamic, the button is repeated and the event on each...
asked by 27.09.2018 / 18:29
1
answer

Collapse Menu Bar Automatically with jQuery

What friends on this occasion need to leave the menu with the event mouseout(); this automatically collapses but fails to do that, and I assigned an id to each element of the menu, what I'm doing wrong? $("#collapse").on("click", funct...
asked by 27.09.2018 / 21:39