Questions tagged as 'jquery'

3
answers

Show menu when right-clicking?

I have a data table, where each row is a record. I want to do it like Windows or One Drive / Outlook etc. By right clicking on the table item open a menu with the options "Delete" "Edit" and "Hide." I've been researching these interactions wi...
asked by 17.03.2016 / 06:32
2
answers

Activate TAB key for next field in RegExp

Good morning, I'm developing a form where I have a "username" field, in this field I use this RegExp("^[0-9a-zA-Z \b]+$") , it works perfectly, however when I use the TAB key to move to the next field it does not work! I've already tried u...
asked by 15.03.2016 / 13:17
1
answer

Problem with jQuery.ajax php

Well, I have a problem that I do not know what to do. I've tried to do everything but nothing. It is the following I am doing a php chat but this is giving an alert () error:    ERROR! jQuery(function(){ jQuery('body').on('keyup', '.c...
asked by 16.05.2016 / 00:24
1
answer

Modal display when submitting form. Without loading the page

I have the code below. I would like to display a modal once I submit the form and if all fields are filled out. If any field has not been filled it is already showing a popover in the field indicating that it is wrong. Thank you for your contrib...
asked by 14.05.2016 / 18:55
1
answer

Disable previous dates datapicker with bootstrap

Colleagues. Through #, I implemented the datapicker on my system, however I would like to disable the previous dates of the current date. By their model, it presents the following form: $('#sandbox-container input').datepicker({ autoclo...
asked by 14.02.2016 / 00:48
2
answers

How to load reload page when selecting dropdownlist item from jquery list passing parameters?

I have a select <select id="selecao" name="tipoLocal"> <option value="casa">Casa</option> <option value="predio">Predio</option> <option value="predio">Terreno</option>...
asked by 18.02.2016 / 14:28
1
answer

Clear fields with Jquery [duplicate]

Colleagues. I'm trying to clear fields after submitting a form, but I'm not getting it. See: $(document).ready(function() { $("#resposta").ajaxStart(function(){ $(this).html("Mensagem sendo enviada, por favor aguarde..."); }...
asked by 30.01.2016 / 16:39
1
answer

Doing price calculation with jQuery within PHP loop

I'm doing a shopping simulation page. I already have the product loop in PHP, now I need to calculate each product by quantity. Here's the HMTL: <td width="140"><?= $produto_nome; ?></td> <td width="160"><?= $p...
asked by 01.02.2016 / 22:38
1
answer

What is the best way to write the following jQuery / JavaScript code?

I have the following code snippet which, basically, through a jQuery ( $.ajax() ) request, uses selectors to fetch elements from a page (with content) and places inside elements of the current page using selectors of this. $.ajax(...
asked by 30.01.2016 / 19:34
1
answer

How to leave a selected option

How do I leave a option selected via jquery ? I know it's because of its selected attribute, but I have no idea how to do this. The following code to illustrate how I was doing: Session var sessao = localStorage.getItem('sele...
asked by 06.01.2016 / 13:39