Questions tagged as 'jquery'

2
answers

How to transform the JSON_ENCODE from PHP to JSON in javascript

Hello, My javascript pulls the result of a select done in PHP, which arrives in Javascript is as follows: Idonotunderstandwhyit'scomingupwiththis"string ()" on the front, I've already tried using JSON.parse, but it does not work, as in...
asked by 12.10.2018 / 02:44
1
answer

Uncaught TypeError: $ (...) .animate is not a function

If it was noon and I could not find the problem, of a fact that I thought was simple. In the Jquery documentation, it says: $ ("#book") .animate ({ I have tried to put a newer, older Jquery, but, it will not. It does not work a simple scroll s...
asked by 27.09.2018 / 20:45
1
answer

Upload from Database only when 100% loaded

In the Portfolio section, when you press +, you can see that you load the block first and then the images with a delay of 1 second. SEE THE SITE: somospixel.com/test I want it to only load when the images have already been uploaded. Fun...
asked by 28.03.2016 / 20:54
1
answer

How to limit the amount of rows in a text with JavaScript / jQuery?

I want to limit the number of characters in a paragraph by up to two lines, not necessarily an absolute number of characters, since the amount in each line can vary as the width of the element changes ... Is there any way to do this with JavaScr...
asked by 02.09.2018 / 06:59
1
answer

Add and edit AJAX element

Good, I want to edit a tr after creating it and added by AJAX. When I click on create 'Brand': $('#confirmCreateBrand').click(function(){ brand = $('#createbrand_name').val(); advertiser = $(this).attr('advertiser-id'); user = $(t...
asked by 21.05.2018 / 13:13
1
answer

Change text with Javascript

Hello, Can anyone help me with a JS script to change the button text instantly? But change only when the status of the $ x variable changes from 0 to 1, or when you click on the button that contains the text.     
asked by 29.03.2018 / 04:04
1
answer

Can someone give me a help, is not validating the email.

$('#username').focusout(function () { //atribuindo valor do campo var sEmail = $("username").val(); // filtros var emailFilter = /^.+@.+\..{2,}$/; var illegalChars = /[\(\)\<\>\,\;\:\\/\"\[\]]/; // condição if (...
asked by 25.05.2018 / 15:46
1
answer

Move by divs using the arrow keys

At some point back I came across a jQuery plugin where I could move through the divs, menus, images ... using the directional arrows on the keyboard. I've tried a lot about it but I can not find anything. Does anyone know of this or any pl...
asked by 05.12.2017 / 15:55
2
answers

Help with JQuery + Php

I have a form that is is loaded through a while from bd. the structure is this: <form id="formulario" name="formulario" action="javascript:Func()" method="post"> <div id="div_prod"> <?php $sql_prod = mysql_query("SELECT...
asked by 25.05.2017 / 02:19
1
answer

Testemonial with Bootstrap [closed]

I want to put our customer's comments on our company website. For this we are wanting to use the code of this site , we have created a totally isolated page and placed it according to the website informed, but it is returning so without the quo...
asked by 06.06.2017 / 03:56