Questions tagged as 'html'

1
answer

JavaScript variable error

I have the following javascript code below that the following error occurs    Uncaught ReferenceError: rdIdem is not defined at HTMLInputElement (ff_admin.php? folder = requests / & file = ff_fmins_pedidos & ext = php: 806) at HTMLDocument.di...
asked by 27.03.2017 / 00:35
1
answer

Toggle text color according to background color

How can I change the color of a text, according to the background color in which it is inserted? I've seen this a few times. It works like this: if the background is light, the text turns black, and if it's dark, the text goes white. I've...
asked by 07.03.2017 / 14:41
1
answer

Popular select dynamic with javascript

I have two select, and I want the second to only show the data depending on the selection of the first one. What I lack is 'popular' the second select, because I already have the necessary data to put into it. As I'm starting with JS I do not kn...
asked by 07.03.2017 / 06:44
1
answer

Coloring a field in a column according to parameters

I have a table with 5 columns and 2 records. One of the fields in the record is a number (noteQualif), I need the field in which it is inserted to be painted green if it is larger than 75 and painted red if it is smaller than 75. All data is...
asked by 09.02.2017 / 16:54
2
answers

Dropdown Double menu does not show the second dropdown

The first dropdown is working normally, but the second is not working at all. I have tried to specify the classes more, but there is no way, I believe it is something very simple that I am letting go. I'll be grateful if you could help me. Th...
asked by 07.03.2017 / 23:22
2
answers

How to generate automatic fields

I need to go to the database to fetch the img and go showing it in every <li> </li> of the carousel, however I had to leave it automatic, since it's a lot of photos, is there any way? <div id="wrapper"> <d...
asked by 01.02.2017 / 21:07
1
answer

Problems selecting

Hello! Well, I have a problem ... I just do not know how to explain. Myproblemistheoneyouareseeingintheimage,thesizewhenselectingismuchlargerthanthefont...Ihopeyouhaveunderstood.I'dliketoleaveitlikethis:     
asked by 01.02.2017 / 00:29
1
answer

Toggle page content by changing div only

I'm creating a website, where I want to use the div from the main page to switch between other pages. For example, I have the 'index', 'content 1' and 'content 2'. I want to make when I click the link, change the content from 'index' to 'content...
asked by 01.02.2017 / 22:56
1
answer

Using .append () or .html () - jQuery

I'm not able to insert html into an element. JS function carregaAgendamento() { var url = "http://prestoexpress.com.br/vistoria/json.php"; $.getJSON(url, function(result) { console.log(result); $.each(result, function(i, field) { v...
asked by 01.02.2017 / 22:46
1
answer

How to identify the child element clicked through the click event on the parent element

I have the following code: <div class="tipo-cadastro"> <div class="box-logista active">Logista</div> <div class="box-distribuidor">Distribuidor</div> </div> and the following code in javascript /...
asked by 01.02.2017 / 18:31