Questions tagged as 'jquery'

1
answer

I do not add the row in the table by Jquery

I must add rows to a table using Jquery, I have not been able to see the error in the console, the picture shows what I should do after clicking the add button of the modal form: $(document).ready(function(){ $("#add").click(f...
asked by 06.05.2018 / 17:03
2
answers

CSS error when applying events to buttons - jQuery

I'm doing an image viewer with four buttons (First, Previous, Next, Last). Initially, an image is loaded randomly (I have them stored in a folder called "images"), and then we can move through events of those four buttons. Why do not I app...
asked by 30.05.2017 / 13:18
1
answer

Help in laravel 5 and ajax. Get a value from the database

I want that in my view, when selecting something in my dropdown, I execute a method that I have in my controller, it performs another function (query) in my model, which takes a data (int) from a table . I have an error when debugging with chrom...
asked by 10.06.2016 / 18:10
2
answers

How to get the value of an attribute in an html tag with JQuery

Friends What happens is that I need to capture the value of an attribute of an html tag in this case. <input class="btn btn-danger link1" type="button" value="Delete" data="@item.MunicipalityId" /> I have this tag inside a cyc...
asked by 13.06.2016 / 20:06
1
answer

consequences of stopPropagation

I have a website, mostly made with Bootstrap and certain not so powerful PCs (I saw a Core 2 Duo with 4gb of RAM) as an example, my web experiences some "latency" when clicking on form elements like inputs, buttons, selects and the css animation...
asked by 16.02.2017 / 03:25
2
answers

download file from url with ajax and asp.net mvc 5

I'm trying to download a file from a URL with ajax and asp.net mvc 5 This is my controller: [HttpPost] public ActionResult DownloadDocument(DownloadModel model){ urlFile = "http://www.storage.net/data/pdf-xml/" + model.nombre.ToLower() + mo...
asked by 06.06.2016 / 17:47
1
answer

How to remove scroll that appears when displaying a table within a Jquery accordion?

Greetings. If they are fixed when we click on table1 a table is shown and that's all fine. But if they are fixed after displaying the table, a non-pleasant space is generated (after the page) and that space appears until the second accordion...
asked by 25.01.2018 / 16:41
1
answer

Obtain a specific text fraction with jquery

I have this variable var data = "<option codigo='1'></option>,<option codigo='2'></option>"; and I want to get only what is inside codigo='' that is, get 1,2     
asked by 13.02.2018 / 05:26
1
answer

How to adjust an image in fancybox2?

I'm using Fancybox2, could someone help me to adjust an image so that it is displayed completely without scrolling to see it all? My image when opened with Fancybox is displayed like this: My code in Fancybox is this: $(document).r...
asked by 13.05.2016 / 18:47
1
answer

Change property css depending on the browser used

The following code should increase the space between the letters when it opens in safari but it seems to ignore the order that changes the css property even though the alert does. Thanks. function BrowserDetection() { //Check if b...
asked by 13.04.2016 / 21:56