Questions tagged as 'jquery'

1
answer

Making an input only appear when an option (select) is chosen

I have a registration form, with a selected, but one of the options of this selected when selected should appear an input. Example: <select> <option>value1</option> <option>value2</option> </select>...
asked by 07.11.2015 / 21:12
1
answer

How to make the text disappear and appear?

I do not completely dominate jQuery, I have text in a div and would like it to have a fade effect and appear as a presentation ... or something like that. More or less like this: [appears in 2 seconds] TEXT 1 [wait 5 seconds]...
asked by 12.11.2015 / 17:06
2
answers

Add hours with the Final Countdown plugin

I'm doing a countdown system and I'm using "The Final Countdown jQuery" $('#clock').countdown('2015/02/16', function(event) { $(this).html(event.strftime('%D dias %H:%M:%S')); }); <script src="https://ajax.googleapis.com/ajax...
asked by 15.02.2015 / 04:51
3
answers

Real-time dynamic search

In the company I work with, we will implement a system in which the Back-end will be PHP and the database will be CACHE (Intersystem). The database is on a different server from where the system will be implemented in PHP, it happens that all...
asked by 06.02.2015 / 03:15
1
answer

Using variable as attribute name when doing $ .post

How do I make jQuery look like NomeCampo as variable and not field? var NomeCampo = $(this).attr('name'); var ValorCampo = $(this).val(); $.post(FormAction, {"NomeCampo":ValorCampo}, function(data){ alert(data); } );  ...
asked by 22.06.2014 / 22:05
2
answers

How to change between texts according to time?

How do I get alternating time-bound text in a div? I do not know the command in jQuery, I tried the code below but it does not work. <!DOCTYPE html> <html> <head> </head> <body> <div id="frases">&l...
asked by 03.07.2014 / 15:43
3
answers

Alert message in asp.net mvc

I have a form in Asp.Net MVC that terminates as follows <div class="modal-footer"> <input class="btn btn-primary" type="submit" value="Salvar" /> <a class="btn btn-default" onclick="FechaModal();">Cancelar</a> &...
asked by 24.06.2014 / 14:49
2
answers

Open 2 windows and close one at a time

In fancybox I open two plugin windows and need to close one at a time ... Example: when opening the first window only closes the first and when the second opens only the second, the first one remains open when the second closes ... I made...
asked by 28.06.2014 / 06:00
2
answers

Single Page Application with jQuery

How can I develop a SPA with jQuery? I did with AngularJS with the following code, however I am having difficulties to migrate to it definitively and decided to keep with jQuery so as not to be late. var myapp = angular.module('myapp', []); my...
asked by 22.11.2014 / 22:41
1
answer

Javascript only works if placed directly on the page

I have some functions and they only work if placed in the same file where the code is that will use them. Separate with: <script type="text/javascript" src="js/funcoes.js"></script> Functions: $(function($){ $('#enviar')...
asked by 11.12.2014 / 19:39