Questions tagged as 'jquery'

1
answer

duplicate events in a temple when doing mousemove on an element

I have a case where I have to generate a hover of an element through a template that runs the website the same actions, but the issue is that its duplicates for the same reason what is dynamically called this in JavaScript Here is...
asked by 19.12.2017 / 21:43
2
answers

hide and show button if the type="file" is empty or not

Good morning, I'm trying to show and hide the delete button if the file is empty or not and I do not know how to do it, I think it's a show and hide, but I'm not sure HTML <div style="margin-left: 225px; margin-top: -65px;" id="carta_nom...
asked by 08.11.2017 / 11:11
1
answer

Show correct status with ng-click

I am trying to do a función that I call doing ng-click , where I want to show the status corresponding to the ítem that I give click , that is, if I give click to the object banana that only me show the st...
asked by 04.10.2017 / 16:05
1
answer

Problem with jQuery Ajax and PHP

I am trying to make a record in the BD without recharging the page. The record is saved correctly, but when I want to capture the answer the PHP document is displayed. Code js $('#btnagregarO').click(function(){ var obs = $("#txtob").val(...
asked by 20.09.2017 / 20:19
4
answers

Modify appearance of an input

Hi, I explain, I have 2 input text and I want it in the first one if you have 4 or less characters, you should use the red form and if you have more in yellow I have it all on the same page and with conditionals if, I thought about while but...
asked by 24.09.2017 / 17:37
1
answer

Ajax, Jquery and PHP: Can not read property 'length' of undefined

I've been trying to run this code all morning. One method loads several div, one inside another function renderPage(e){ var contPrincipalLastTwitter = '<div class="principalSeeTwitter">' +...
asked by 30.09.2017 / 19:23
1
answer

Problems with jQuery and css in angular2

I am developing a web application in angular2 where it is formed by the following structure: a header, a drop-down side menu, the content of the app on the right side and a footer at the end. My problem is how to make the height of the menu...
asked by 28.09.2017 / 14:09
2
answers

show span text with hover JQuery

var cont = $("h2#descripcion").text(); function leerSpan() { var x = $('span', this).text(); $('h2').text(x); } function volver() { var y = $('span', this).text(); $('h2').text(y); } $("h2").hover(leerSpan, volver);...
asked by 06.02.2018 / 20:13
2
answers

Take out the percentage between 2 amounts in different jQuery elements

I need you not to give me back NaN. In div.calculado I must put the% of each comparison (percentage discounted). There is no problem when it is a single operation, then what I need is that it is cyclical (the first price_sale is compared...
asked by 07.02.2018 / 01:13
3
answers

Jquery remove an unspecified class from an element or delete all classes except for some

I have an HTML element select # options that when selecting one of the options it will dynamically add classes to the div # container element, but I need to delete the class that was previously added to this element and then add the new clas...
asked by 26.09.2017 / 23:12