Questions tagged as 'jquery'

2
answers

Validating the javascript / jquery object?

I lost a little time with a javascript validation and I had the doubt in my head: I need to know if an element exists through id . I tried some ways and I did not succeed: //tentativa 1 $('#idDiv').val() != undefined //tentativa 2 typeo...
asked by 18.08.2017 / 18:25
4
answers

Is it possible to do an IF with direct javascript in html?

I have a button that I want to show only if the person logged in is an administrator. But it has to be in JS. In PHP, I would do this: <!doctype html> <html> <head> <meta charset="utf-8"> <title></title>...
asked by 28.12.2015 / 13:57
2
answers

How to submit form in the simplest way possible? [closed]

I have a simple form with name, email and message. I would like to send the result of this form to two e-mail addresses. Does anyone outline some simple way with PHP for me to submit this form? Can not send only with javascript, right? Not...
asked by 16.12.2015 / 00:26
1
answer

How to take referrer of this script? I want it to open when I came from any site

Hello. I have a script, but it only opens when it comes from certain sites. How do I make it open without ever having to referrer and keep cookies? Thanks since. function getCookie(c_name) { var i, x, y, ARRcookies = document.cookie.spli...
asked by 19.12.2015 / 19:28
1
answer

Mark checkboxes as indicated in a JSON

I have a table with two rows and three columns all with a checkbox set. The idea is to check as checked by a json string var rs = [{"cklist":"1;1;1"},{"cklist":"0;0;0"}]; and cklist[0] represents the ceckboxes in row 1, and ckli...
asked by 23.02.2016 / 02:38
1
answer

Stay testing until a variable is created in php

I am sending an ajax to a table, but this table can only be created after receiving the value, however it is being created before in blank, how can I make a check for the table to be generated only after receiving the ajax value , stay in a loop...
asked by 06.12.2016 / 12:45
1
answer

URL disrupting ajax requests

I have a system that defines the url according to the link that the user clicks, and makes an ajax request and returns the content only that the url hinders the request. For example: The user clicks a link and the url is modified to localh...
asked by 27.10.2016 / 13:07
1
answer

My if never falls on the else

I need to lower the volume of <audio> by clicking on the down arrow, but if is not working, it never enters else . Why? Code: $(document).keyup(function(e) { if (e.keyCode == 40) { if ($("#nome").get(0).volum...
asked by 14.04.2014 / 04:52
2
answers

Rotating Banner with Bootstrap

How do I make a rotating banner with Bootstrap? I searched the Bootstrap documentation, but I did not see anything about a rotating banner. How I do? In truth, what I want to do is to display several images, this is what I call the rotating...
asked by 28.07.2014 / 15:58
1
answer

How to check if the login exists in the bank by ajax?

I made a login system with ajax and php in it I pass the login and the password that are in the bank but I wanted to know what is wrong with my code because whenever I try to login to the site with a valid login it falls on my false status and i...
asked by 16.12.2015 / 00:02