Questions tagged as 'javascript'

1
answer

How to create elements of a typehead in a div

I need to develop an input that returns information from the database, but this information has to be visible in a div on the right side of the page I tried a lot of things, but I did not get anything. My test page: <!DOCTYPE html>...
asked by 06.12.2017 / 18:51
2
answers

Change input color according to value

Good afternoon Friends I have an input with the name of MARGIN, where a value is displayed according to some calculations that are made ... I need the input to change the color to red if this value is less than 25, if it is bigger it maintain...
asked by 09.05.2018 / 20:21
3
answers

How to use a text selector in html?

How can I make a text selector within HTML so that I can have options when certain text within a p tag, for example, is selected?     
asked by 08.05.2018 / 16:04
2
answers

How to put notifications in Title? [duplicate]

Following the example of facebook     
asked by 08.05.2018 / 16:31
1
answer

Increase text size when scrolling

How do I scroll the page to increase the size of the text? I would like every%% text to increase by 50px to scroll the page to a total of 10px top. Below is Fiddle and Snippet: JsFiddle $(document).ready(function(){...
asked by 20.09.2017 / 18:16
3
answers

Disable button after click

I have a form that sends tans to my database when I click the button.              What can I do to disable the button after clicking? I do not want the button to be triggered more than once.     
asked by 19.09.2017 / 21:07
1
answer

Multiplying Values in JAVASCRIPT

I wanted to get the value of the Field where it places the value of R $ and limit [tipo (1<= 99 ) *23 e (>100) *25 ] how? Code I have: <!DOCTYPE html> <html> <head> <script src="jquery.min.js...
asked by 03.09.2017 / 15:22
1
answer

How does the map function work?

I am studying JavaScript , learning the functions map() , filter() and reduce() , and found a
asked by 14.09.2017 / 09:40
1
answer

Detect ellipsis

I have a following div with an image, title, and some options. See: .truncate { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } <div class="item thumb"> <div class="thumbn...
asked by 29.08.2017 / 21:50
2
answers

Show and hide effect jquery

How do I pro jquery open only the box I clicked, without opening the others. I tried to use $ (this), but I could not. Not the way I want it.    HTML <div class="main"> <i class="icon icon-edita">Editar</i> <di...
asked by 17.01.2018 / 18:48