Questions tagged as 'jquery'

1
answer

Update DIV with Javascript

I have this code to update div every time, but I feel that it makes a lot of effort to my server. <script language="Javascript" type="text/javascript"> function refreshDivs(divid,secs,url) { // define our vars var divid,secs,url,...
asked by 14.04.2017 / 23:53
3
answers

enable and disable div with hover

<div class="desabilitar"> <input type="text" > <label>Input 1</label> </div> <div class="desabilitar"> <input type="text" > <label>Input 2</label> </div> <div class="desabil...
asked by 11.08.2017 / 15:57
3
answers

Obtain item with point in class name with JQuery

It turns out that following the documentation of the library fancybox I find that to define the behavior of its elements through classes, a syntax must be followed like the following: <a href="http://www.dominio-ejemplo.mx/pagina" class="...
asked by 15.12.2015 / 02:14
1
answer

Select HTML elements inside another with jQuery

Let's say that I have a function defined in JQuery, I write it in a simplified way: miFunc = function(elem) { ... } elem is an HTML element. It could be a past element when making the call for some mouse event. For example, a div...
asked by 16.02.2016 / 17:33
2
answers

Avoid changing tab with javascript

I am working with tabs on my project, the tab I build it like this: <div class="tab-container"> <ul class="nav nav-tabs nav-fill" role="tablist"> <li class="nav-item"> <a class="nav-link active" dat...
asked by 03.07.2018 / 19:18
1
answer

Cut text from an input stored in a variable with javascript or jquery

I am storing in a variable the .text of a input . For example the text variable: texto = "Esto-es un mensaje" I want to save part of the content of that text in another variable. So where is the script that saves for ex...
asked by 01.09.2018 / 21:02
2
answers

Take the value of an HTML id with Jquery

Something I have to be doing wrong but I do not see what. I have a list of divs and I want them to click on an item in the list to take their id. I currently have this but I can not get it to work. (function($) { function selectPara...
asked by 21.02.2018 / 16:15
1
answer

Nested accordions on Bootstrap

I have a series of nested Bootstrap accordions and when I have to put some tags ( span ) between the panel structure, the offspring do not work and the closing / opening of the same fails. I've tried this script but I can not get it. An...
asked by 16.01.2017 / 12:39
2
answers

Assign value to a returned input from a controller

I have this script in my view $(document).ready(function () { $("#PlanVenta").change(function () { $("#Precio").empty(); $.ajax({ type: 'POST', url:'@Url.Act...
asked by 31.08.2016 / 20:44
2
answers

Hide Element by clicking outside an element

I have a form that is hidden, and a "Show" button that when pressed shows the form ... The idea is that when I click outside the element (form) it must be hidden ... The problem is that when I click on the form too it's hidden ... It is assum...
asked by 04.06.2018 / 16:34