Questions tagged as 'jquery'

1
answer

Error showing data in handlebars-js

I'm trying to access the id of this element sent by json in handlebars.js { "status":"success", "message": { "message":"sdasdasasd", "type":"photo", "post_id":55, "title":"", "description":"",...
asked by 15.03.2016 / 22:08
2
answers

Select pseudo-element with javascript

I have this pseudo class: .swiper-pagination-v::after{ content: "b6"; margin: 10px; background-repeat: no-repeat; } And I need to select it because it's the arrow that makes the slider work, for this is this kind of javascript:...
asked by 21.08.2018 / 14:55
1
answer

Event click inside a tag that has another click event?

I am creating a label in the form of a bar that contains icons, this label has an associated click event that, when activated, shows me a detail. Now, the problem arises when I want to give an event click to the icon, which are contained...
asked by 14.08.2016 / 23:22
2
answers

How to use addClass with Array selector in JQuery?

I need to collect all the elements that have the class "events" in an array, to later traverse the array in search of an attribute, for example, "blablabla". If you have "blablabla", I will add the class "newClass". I have done the test with...
asked by 18.04.2018 / 16:59
2
answers

How to use serialize in a form with File type input?

I have a form in html to register a product for it use ajax, when I make a serialize to the form I get all the fields of the same except for the field of type file that with FormData (), I can get this field but I like to know there is a way wit...
asked by 30.03.2018 / 12:30
1
answer

How to pass the VALUE of an INPUT to another INPUT of a table created with JQuery?

You see, I have my code, in which of a search that I do, when selecting the result the fields (INPUTS) are filled automatically using the autocomplete. Now, clicking on add using JQuery I have created a table which creates all the INPUTS similar...
asked by 18.05.2018 / 23:43
1
answer

Convert an array of objects to JSON

You see, I have the following problem, I have a field of type hidden on a page asp.net that has as value a list of objects serialized with JSON from C# . The value of hidden is the following text: [{ "Eleme...
asked by 09.05.2018 / 17:35
1
answer

How to operate a gif loading when using the window.location.href when downloading a document?

I have the following click event, which when exporting a pdf, is downloaded, but I wanted to place a gif animation loading while it is generated. I've tried to do it like this: $("#export_pdf").click(function (e) { e.preventDefault();...
asked by 02.07.2018 / 23:49
3
answers

The length of the string exceeds the value set in the maxJsonLenght property

I am sending a picture on Base64 through Ajax, this is because I am using an Apache Cordova PlugIn to take pictures. The result in Base64 is sent to the MVC server in a JsonResult. The problem is that when the string is very long the server retu...
asked by 21.06.2018 / 21:01
1
answer

How to give focus to a button in HTML

How do I give the focus to a button after I have a form with several buttons For example, I click on Coca Cola 12 Onz. That is a button but then I would like the green button that says Save (ENTER) every time I select a product to get the...
asked by 17.07.2018 / 18:54