Questions tagged as 'jquery'

1
answer

select is blank when giving history.back ()

I set up a system where I enter the state and jQuery loads the cities. The problem is that when I run a history.back() and go back to the form page the select city is left blank. How do I make it not lose value? Code sample....
asked by 05.05.2017 / 21:42
0
answers

Magic mouse is skipping the sections when I scroll

So when I use a normal mouse, the scroll is correct, but when I use magic mouse, it skips one-two sections. How do I solve this? I tried to add a delay (100) when the user had to use MAC that even solved the problem, a problem that the user says...
asked by 17.04.2017 / 20:08
2
answers

Jquery - Best way to select the same element

My system works in the form of SPA (Single Page Application), I load all the functions that I will use in the system in a single file (which is light by the way), the problem is that it is all Once I load a page, I need to retrieve the inputs wi...
asked by 17.04.2017 / 04:41
0
answers

reCaptcha in lightbox

Hello, I'm trying to insert a recaptcha into a page, I was able to successfully insert the contact page through an AJAX form. The problem is in an AJAX form that is inside a lightbox (in case I use featherlight but I think it does not influen...
asked by 18.04.2017 / 14:19
0
answers

Remember the item status with cookies

link I wanted that, in case the user opened one of the main items, when giving refresh, it would remain open. I've tried to do this in a few ways but I still can not, if anyone can help, thank you.     
asked by 12.04.2017 / 04:13
0
answers

Jquery and keyboard in android and IOS

I am having difficulty catching which character the user pressed when using smartphone with ANDROID / IPHONE. I use the jquery keyup event, but the answer is always undefined or 229. Does anyone know how to solve this? The code I'm using:...
asked by 12.04.2017 / 01:19
1
answer

How to use inheritance and polymorphism when passing a JSON to an MVC C # Controller?

I have an MVC method that receives a client class as a parameter: public async Task<ActionResult> Cadastrar(cliente model) { } It turns out that this class has two children, a class called a person. and another class...
asked by 12.04.2017 / 01:13
1
answer

Good practice when loading a div with database data, using jQuery

What is the best way to build a div with jQuery Example: $(document).ready(function(){ $.ajax({ type:'post', dataType: 'json', url: 'listAllForum', success: function(dados){ for(var i = 0; dados.length > i...
asked by 12.04.2017 / 22:01
0
answers

Doubt about submit and jquery?

I'm developing an application in Asp.Net MVC and am having a problem that I can not solve. I have a form with 2 buttons submit , and when I do submit I want to get the name of the button to which I clicked by id and thus chan...
asked by 27.05.2017 / 15:18
0
answers

Browse table by jQuery

I need to go through a table to see if an element already exists in the first column. Table: <table id="tabela-resultado" class="table table-bordered table-striped table-hover"> <thead> <tr> <th>Nome</...
asked by 26.05.2017 / 01:08