Questions tagged as 'javascript'

3
answers

Is it possible to use functions within a condition?

I was analyzing websites when I came across the following excerpt: if (console.log(i), i && void 0 !== i.name) { // code here... } I tested this: var i = {name: "mizuk"}; if (console.log(i), i && void 0 !== i.name) {...
asked by 02.03.2018 / 17:58
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
3
answers

How do I get the result of the select and assemble the HTML?

My problem is: I have a start date field and a end date field and in my table a date field . The user is going to type a start date and a end date , and in the database I check if there are data included between those dates. If there...
asked by 27.08.2014 / 16:27
3
answers

Decrement the lines of the code while maintaining the function of getElementByID?

Is there any way to eliminate these many lines of code while maintaining the same function? (The function would be to keep hidden textarea content until check-box is selected and keep it just readable) so that would make my code a little small...
asked by 26.11.2017 / 23:30
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

How to leave the IFRAME editable?

I remember a long time after using a code in a IFRAME that allowed me to type, put bold or italic in the fonts, within that iframe . I know it's not with the option contenteditable , it was another way of setting. I aske...
asked by 29.11.2017 / 17:33
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
2
answers

Does the space key also become a character? LENGHT

The space key also becomes a character? My problem is that even if in the input #userChat there is only the space key itself so the alert() , and this ends up being a big problem .. Keys: Space and Line Break. I need that I c...
asked by 03.08.2015 / 16:34
1
answer

What are the pros and cons of using jquery in mobile development? [closed]

I'm starting in hybrid development using Cordova (with visual studio) and in my searches on javascript frameworks, I have found many people using AngularJS, and I was surprised by the fact that I did not find anyone who uses and recommends JQuer...
asked by 25.07.2015 / 13:40