Questions tagged as 'jquery'

2
answers

How to add a line break after a certain amount of characters?

I have a variable that receives text, I would like to insert a line break in this text after the 40th character in jQuery. This line especially: $(".chat").append('<li class="other"><div class="msg"><span>' + client + ':&l...
asked by 09.01.2018 / 18:45
2
answers

How do I get this effect in a progress bar?

How to make this effect in the text inside the progress bar where the text changes color according to the fill of the bar, and when the bar reaches the text, only a part of the text changes color? Noticethatwhenyou'rein50%halfthetextcolortur...
asked by 10.01.2018 / 22:34
2
answers

remove checked from input radio

How can I remove checked input radio if a div has the click effect? <!DOCTYPE html> <html> <body> <form action=""> <input type="radio" name="gender" value="male"> Male<br> <input type="radio" name="g...
asked by 09.01.2018 / 18:32
1
answer

I have a Javascript function that works in Chrome but not in Firefox

I have a javascript function that does not let you write numbers, only letters, in chrome it works exactly as it is proposed, now in mozilla it does not work, below my function: function soletra(event) { var value = String.fromCharCode(eve...
asked by 10.01.2018 / 11:31
2
answers

Sending an image and other data via JQuery to PHP

I have a question that I can not find a solution to. I need to send via Ajax an image and other fields to a PHP file and save it to MYSQL database. I do not know how I can do this, can anyone give me an idea of what JQuery looks like?     
asked by 27.07.2016 / 03:02
1
answer

Loop in JavaScript

I need to delete a line from a list. it changes an input items. Example: linha 01 linha 02 linha 03 If I delete line two now it stays: linha 01 linha 03 But I did not want it that way, so I need it to change and leave it like this:...
asked by 02.10.2014 / 23:03
2
answers

Problem with jQuery to open / close divs

I have a jQuery that I made to open and close a div by clicking on the corresponding question. The problem is that only the first div is opening \ closing, even though I clicking the 3rd or 5th question. Example: link jQuery: var SC =...
asked by 10.09.2014 / 20:38
1
answer

Send email to client to check whether or not [duplicate]

I made a registration to be inserted the cpf and email, the cpf I could validate right, to see if it works or not. But when it comes to the part of knowing if the email exists ... I researched a lot and saw a way, which is to send an email to...
asked by 28.11.2017 / 17:35
2
answers

What is the difference between $ ('# id') and document.querySelector ('# id')?

Is not it supposed to get the same result using one method or the other? I added a listener oncick and only using the second method could actually declare the event listener . Why? var record = document.querySelector('#record');...
asked by 28.11.2017 / 12:37
2
answers

Counter in M: S format, javascript

How to make a counter in JavaScript / jQuery where it is in this 00:00 format and that it stops and executes an action is stopped, but its limit is 10 minutes, it can only stay from 0s to 10 minutes, when it arrives in 10 minutes it automaticall...
asked by 14.07.2015 / 02:30