Questions tagged as 'html'

1
answer

why do variables and other problems not work in this code?

I need to make this calculator work but I do not know what's wrong: var operandoa; var operandob; var operacion; function init() { //variable var resultado = document.getElementById('resultado'); var reset = document.getEle...
asked by 19.12.2017 / 02:15
2
answers

How to correctly use tr and th in HTML, etc?

Hi guys I have a question, I have a table of types of cars with the respective ID and Name, what I want to do is add an edit button next to each field and every time you click on a button redirects me to a page type_edit depending on the id of t...
asked by 07.11.2018 / 14:07
1
answer

Checkbox and datepicker

I'm looking for the way that when the checkbox flages change the format of the datepicker. This is my Jquery code $(document).on('click','#chk_out',function () { if ($('#chk_out').is(':checked')) { $( ".datepicker" ).datepicker...
asked by 22.12.2016 / 00:43
1
answer

Change the color of a box in the hover state of a snip1281 CSS

I'm making a model and I'm using snip1281 that have an effect on the hover, each image or race has a hover effect of a top line with color and a box with the same color on a white text, but all the races have a different color that each box in i...
asked by 06.07.2018 / 20:11
2
answers

Remove all the blanks of an HTML element

I have tags which as text have links to websites, that is, something like this. <a href="http://www.asdfasdfasdfasdfasdfasdfasdf.com/asdfassdfasdf....">http://www.asdfasdfasdfasdfasdfasdfasdf.com/asdfassdfasdf....</a> The proble...
asked by 03.08.2018 / 14:10
2
answers

Fill a html select by means of a javascript cycle

I want to fill a select dynamically with years, starting from the year 2000 to 2050, through a for javascript. But the code still does not work for me. HTML <select id="año"> </select> JAVASCRIPT select = document.getElemen...
asked by 02.08.2018 / 23:33
3
answers

Styles of media queries

I have a problem with media queries, I'll explain: Imagine a div that I have for pc with these styles: div{ color: red; widht: 100%; height: 200px; } And the same for mobile with these: div{ widht: 100%; height: 200px; } The div for...
asked by 12.07.2018 / 01:12
3
answers

Help with the validation of a login with user privileges [closed]

I want to login with user privileges, I have a database called login , with a table accounts with the user fields, password and type_count . In the forms to log in I only have 2 inputs: user and password . When creating the accounts I...
asked by 22.03.2018 / 16:23
3
answers

How to make my function only affect the element that is being clicked

I have this function, but when it is executed it is applied to all the elements and since I am using its css style reference to grasp the elements, all are painted and not only the one that is clicked $('.vermas').click(function(){ $('.e...
asked by 28.03.2018 / 02:29
1
answer

Place a value plus the variable in an input with javascript

Good what I want to do is that depending on the value that enters the input I put a V- or E-, but does not add when it is E-, or if there is already a V- does not change it. I attach the code. function evaluarContenido(cadenaIngresada){...
asked by 28.03.2018 / 17:52