Questions tagged as 'javascript'

1
answer

Hide and Show DIV based on SELECT response

I have the following code and I would like that when selecting any value inside the select "#cities" show the ".DadosLoja" div and that it is hidden at first, already taking advantage of the question there is something else that I am not getting...
asked by 16.03.2016 / 13:02
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
2
answers

How to create an icon with animated hover

What do I need to know to create an animated hover like this in the link menu? I know that this menu is done with javascript, but where should I look for those such icons that look like gifs, some specific website or font, or would I have to c...
asked by 10.05.2016 / 22:01
1
answer

Bar that changes from time to time

Well, I have a little bar here on my site <div style="padding: 30px;" class="bg-light-gray" id="barra- programas"></div> I want to use JS to make every 10 seconds it changes text, in /sistemas/frases.php When it comes it c...
asked by 09.05.2016 / 22:25
1
answer

is it possible to two submit a button?

Is it possible, within a click to call two submit? Here's my problem, I need to call two ActionResults within a button. Here's what I've done so far: $('#enviarPreProposta').click(function () { var telefoneValido = ValidarTelefon...
asked by 12.02.2016 / 14:37
2
answers

Javascript does not pull results [closed]

Good afternoon guys, I'm trying to get it to calculate again using other field types, such as checkbox and list with some conditions, in some tutorials I tried to understand how it works, but I was not able to generate the result, if you can tak...
asked by 15.02.2016 / 17:40
2
answers

Retrieving a json and transforming into html

I would like to know how to convert this return that I am creating to HTML, it is displaying a string the elemntos html are coming as string in the browser, follow my code below var ul = $('<ul>').appendTo('body'); var...
asked by 16.02.2016 / 12:15
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