Questions tagged as 'jquery'

1
answer

Jquery returns "0" in div

I have a ajaxForm function that searches some data in the database and should return the HTML result in a div. The problem is that when I inspect the page the return is correct, but in div only the number "0" appears. Can anyone he...
asked by 27.06.2017 / 18:52
4
answers

Input Validation with javascript

Good afternoon, I have a form where I built a function to validate unfilled fields. But when I start filling in some fields and I leave some empty and I click on the submit button to submit anyway. HTML: <div class="form-...
asked by 21.06.2017 / 19:59
2
answers

dataTables does not sort numbers correctly with string

I have a table where I use the dataTables plugin and in some columns (in several of them) have values that contain numbers + string. An example column: Itshouldbesortingfromhighesttolowestwhenyouclick,butbyclickingonthecolumnitbringsm...
asked by 28.06.2017 / 22:18
1
answer

Video loses size within div with use of resolution slider

I'm using Revolution Slider and when transitioning videos through Carousel, the video loses the default size that I set for my watch page, that is, I determine width:auto and height:768px , but when performing the transition, these...
asked by 26.06.2017 / 23:05
1
answer

validate dynamic field with validate

I'm trying to do a validation for a dynamic field with validate, but it only validates once. The dynamically added fields are not being validated below: $(document).ready(function() { $(".data").mask("99/99/9999"); var i = 1;...
asked by 12.06.2017 / 23:05
1
answer

plot X-axis Graph with Data

Galera, I have a chart and would like to put the X axis in Data It was like this: xAxis: { tickColor: 'transparent', tickDecimals: 2 }, I put it like this: renderer: $.jqplot.DateAxisRenderer, tickOptions:{formatString:'%Y-%...
asked by 12.06.2017 / 22:56
0
answers

How to make a div stay fixed with CSS translate

I have a mobile menu that "pushes" the content to the right when it is opened. The problem is that the visitor can "drag" the content due to "translate". I would like to make the content stay fixed. Without the user dragging, activating and deac...
asked by 13.06.2017 / 15:25
1
answer

Redirect user terminating php session with Jquery

I'm trying to quit a sessão php and redirect a user after a password change to force new login on the return of an action, the redirection is occuring but I'm not exactly sure how to end the session at that time. p> What I hav...
asked by 09.06.2017 / 16:03
1
answer

Changing color of a div when clicking the first time and displaying an alert when clicking the second time

I'm having trouble creating a code that is simple, so when I click on a div it changes color and when I click it a second time it opens a alert with the name of the color. Can be in jQuery or js $(document).click(function() {...
asked by 21.06.2017 / 17:11
1
answer

Remove javascript mask

I have a field to insert telephone with option for international ddi, I would like to check if the first 2 digits are not 55 I want to remove the mask, but it is not working. $("#tell_internacional").click(function(){ var cell = $("#tell_int...
asked by 21.06.2017 / 16:11