Most voted "html" questions
Use this tag when the question refers to some resource, information or problem related exclusively to the HTML language (Hypertext Markup Language). HTML is the main markup language used to structure web pages and format content. The latest revision of the HTML specification is HTML5.
Learn more…14,259 questions
Sort by count of
-
1
votes1
answer85
viewsHow to make an input not accept the term "Brazilian Music"
That is, if you have written "Brazilian Music" inside the imput it gives an error and not accept. Example. When he has "Brazilian Music" he will not proceed.. HAS HOW TO DO THIS ? MY CODE:…
-
1
votes1
answer81
viewsDuplicate element in DOM with JS
I need to add a <li> via Javascript, but when added, from the second addition, it starts to duplicate, triple and so on, I need you to add only 1 element per click. var btn =…
-
1
votes3
answers87
viewsHow to do it when checking a checkbox it changes the background color of a td of a table and when unknowing it returns to its normal color
Well, I have this code, and it works in parts, when I check the checkbox it changes the color of my td, but when I go down the color does not return to normal, could someone help me? Thanks in…
-
1
votes2
answers74
viewsHow to do when click "send" change the final text Form
I want the result of the content typed in the "Text" field to automatically exit between a preset text within the "Post Text" field". Ex: when typing exemplo in the "Text" field and click submit,…
-
1
votes1
answer367
viewsRemove items and change total value
Hello, I have a problem that I have been racking my brain for a long time and I just can’t understand why it happens... In my application I have a cart that so far inserts products normally, does…
-
1
votes2
answers522
views -
1
votes1
answer34
viewsEncapsulation of random amounts - is it possible?
I’m trying to get php to send a response to the Avascript file with information, in which Avascript makes a request for php in ajax, and php sends a random amount of information, php will pull all…
-
1
votes2
answers193
viewsChange title by icon
I am still learning about Ionic. I would like to know how to change the title of the guides by an icon or a custom image. HTML <ion-header> <ion-navbar>…
-
1
votes3
answers840
viewsDIV Bootstrap Alignment
I used the code @hugocsl gave me and it was aligned, but now it’s tiny in responsive. I used min-width and it worked! .img map { float: left; border:1px Solid; } map {. display: flex;…
-
1
votes1
answer411
viewsShow/Hide jquery
I have a table that shows values coming from the database. Below the line I am trying to run a div to use the toggle() function of jquery. I don’t know what I’m doing wrong, because when I click it…
-
1
votes2
answers190
viewsAlignment of all checkbox on the right
How do I align only the checkbox on the right? html { font-family: tahoma; font-size: 16px; padding-left: 3px; } form { width: 600px; margin: 0 auto; } fieldset { border-radius: 5px; border: 2px…
-
1
votes1
answer96
viewsProblem in the Foreach array
My problem is this, I hope you can help me: I am searching some records from the "Products" table of my database and displaying it on the front. I am using a Foreach to bring these records and there…
-
1
votes0
answers190
viewsI can’t insert icon inside an image with after or before
I need to implement a icone in the :after of this field of radio because I want it to look like the picture I managed to insert the css normal I’m just not able to implement the icon that would be…
-
1
votes0
answers138
viewshtml dropdown treatment for many options
I have a dropdown that is fed in PHP by consulting an Oracle database. It is working normally, but the amount it returns is 15,000 records and each record is an option in the dropdown. It makes the…
-
1
votes4
answers79
viewsShow div/form when user selects an option
I would like when the person chooses one of the select options to appear the form as the code says. And also that when a form appeared the other was with display None. $(document).ready(function() {…
-
1
votes1
answer56
viewsJavascript, list in alphabetical order is not working
This code is to create a list of blogger posts in alphabetical order. The post title and image is displayed. I changed this code to change the position of the image and the title and create class,…
-
1
votes2
answers65
viewsOnly allow to select two days ahead
I would like a javascript function that allows me to select only two days ahead of the current one. for example: today is day 28/06/2018 it allow me to select from day 3, as it would count day 29/06…
-
1
votes2
answers3351
viewsHow to enter and change the field in an HTML form?
How to make in an HTML form it changes from one field to another later when pressing the key Enter? (It naturally changes by pressing TAB). There is already a topic related to this subject, however,…
-
1
votes1
answer112
viewsCollapse in bootstrap with signal exchanged
I’m having a hard time correctly flag the icon (The "+" of the right corner, signaling the expand and the "-" signaling the contract) when Collapse is compressed and when it is open. He gets mixed…
-
1
votes2
answers2153
viewsHow to refresh the page without forwarding information to the php database
I am working on a simple message system, and it works, but whenever a refresh is given on the page, the information of the last Internet is sent back to the database. And if nothing has been filled,…
-
1
votes2
answers687
viewsSend a recorded video via Javascript by input type="file"
I am doing a questionnaire system for a client. From this questionnaire some questions should be answered by video. When opening the question page the camera already starts recording the user. I am…
-
1
votes1
answer66
viewsYou’re not saving in the database
I’m learning to code in PHP, Analyze my codes and help me see what I’m missing, because it’s not saving in the database. Home page where I register - Sign up.html <!DOCTYPE html> <html>…
-
1
votes1
answer73
views@Keyframes, attribute 'Animation-delay' does not work inside a 'from' or 'to'
I intend to give a 'delay' to this animation but I’m not getting a delay before it goes to the center of the page, if I add 'Animation-delay' within the class. ft it already starts in the center of…
-
1
votes1
answer194
viewsHow do I search something in html css js?
So Guys, I wanted to be able to search for items in html, without a bank, because the items will not be added dynamically, they will already be pre-established, as I am a beginner I have no idea how…
-
1
votes1
answer1217
viewsLoad a TEXTAREA field from a SELECT with Jquery
I have a modal that performs email sending. Only I created some email templates in the database mysql. On the screen appears my select with all the templates for selection, only that I would like…
-
1
votes1
answer51
viewsSomeone help me, I wanted to make my div not leave the screen!
Good morning, so I made my div draggable/Moveable, but I wanted her not to be able to leave the screen, I wanted her to have a limit when I move. Can someone help me? Thanks in advance //Make the…
-
1
votes0
answers452
viewsSet a sidebar
I have two components, a form and a sidebar, I want to let my sidebar stay fixed on the screen and when I add data in the form and saving as I insert the sidebar do not "move". At this link (…
-
1
votes1
answer46
viewscreate menu instead of select to change form
I have several forms inside the same page this way: <section class="hide-section" id="produto_1"> <form class="form-validate" id="feedback_form"> <div class="campo">…
-
1
votes1
answer118
viewsTransparency problem using position Fixed in css
I’m trying to create a menu that doesn’t move independently of the user scrolling on the page using position fixed. However I am having a problem with transparency, whenever the menu meets with…
-
1
votes1
answer407
viewsScrollspy is not working
Good morning, I am developing a site, and at first everything is working, but Scrollspy (Bootstrap 3.3) is not working, I followed several internet tutorials on how to apply it in a Website but I…
-
1
votes2
answers533
viewsHow to show next field when user click green button
I have several fields that are hidden and should only appear when the user clicks the see button next to the first field. My initial idea would be when the person clicks the green button (after the…
-
1
votes1
answer1981
viewsHow to Overlay an Image with another?
I’m having trouble positioning one image after another without using position absolute/fixed. When using Divs instead of imgs, if you apply a float:left, it is in the context above the other Divs,…
-
1
votes1
answer37
viewsJavascript sends Ubmit even checking date
I have a function in JS that validates the date so that it is not less than today’s date, it is working correctly, but when pressing the button of the form, it shows the message that the date is…
-
1
votes1
answer331
viewsBug multiples modals bootstrap
I have two modals on the same page, one to change and one to remove information from the bank. The code of the first modal is this: <!-- Modal Editar --> <div class="modal fade"…
-
1
votes1
answer180
viewsRemove dynamic inputs
I wanted the help to be able to delete a line from my form with javascript. I am able to duplicate it, but not remove it. $(document).ready(function(){ var clone_step1 =…
-
1
votes1
answer72
viewsPHP - Uploading multiple images does not work
I am implementing a Drag and Drop scheme in my project, as in the example below: var holder = document.getElementById('holder'), tests = { filereader: typeof FileReader != 'undefined', dnd:…
-
1
votes1
answer64
viewsMobile menu: Click to open and then to close
I have this code to open a responsive menu, but I couldn’t get it to close. $('#menuMobile').on("click", function() { $('.showMenu').slideDown(); }); .container { width: 100%; background: #000; } /*…
-
1
votes0
answers24
viewsElement without properties
See the following code snippet below: var element = document.getElementById('myDiv'); console.log('element: ', element); console.log('has tagName property: ', element.hasOwnProperty('tagName'));…
-
1
votes1
answer32
viewsJquey does not work with inserted elements using . html()
Good night people, then.. I have an ajax code that takes a loop inside a php file and then inserts the result inside an html page. So far, everything works. The problem is when I want to manipulate…
-
1
votes1
answer30
viewsSelector 'not' does not work
I have a gray box with a low opacity and inside it a word, when applying the 'not' selector to the main 'div' to cancel the opacity of the word that is in a "p" tag surrounded by that 'div' the…
-
1
votes1
answer260
viewsHow to create a request via GET
This attribute below is working with href, and directing me to the desired page. <a href="prod_detalhe_5.php?codigo=<?php echo $res['codigo']; ?>"> <img src="img_produtos/<?php…
-
1
votes1
answer637
viewsBackground image in white
I’m having a problem with html, because I need to add an image in the background of a container and I’m using bootstrap, I tried to add the class in a separate css, but it still doesn’t work…
-
1
votes2
answers81
viewsHTML preview showing the first element
I made this html preview, it works very well for my purpose but the first element is appearing as text, and this is a bad result, I understand very little of jquery and javascript, I’m starting to…
-
1
votes1
answer54
viewsChanging icons on menu button does not show
I’m trying to change the icons, but it doesn’t show Menu font https://tympanus.net/codrops/2013/05/08/responsive-retina-ready-menu/ Original CSS Code .icon-team, .icon-blog, .icon-home,…
-
1
votes1
answer142
viewsBackground image in diagonal div clip-path
I managed to do so with solid color background .slide { width: 100%; height: 101px; background-color: #fff; background-size: cover; clip-path: polygon(50% 100%, 100% 0%, 0% 0%); } .slide_bg{…
-
1
votes1
answer108
viewsHow to move element in a straight line towards the coordinate?
I can move an element in the direction of the coordinate successfully. However, for what is needed, it must move in a straight line (which is the shortest possible distance between two points). In…
-
1
votes1
answer146
viewsSome dynamic way to select Ids with Javascript
I would like to know a possibility of an algorithm for me to select a DOM in a more dynamic way, without having to use the getElementById every time. I would like to select all the elements and…
-
1
votes1
answer1025
viewsPosition right bottom button with angled and boostrap
Use Stripped bootstrap table with Angular 6. That’s the screen: See that there’s a button plus in the upper left corner and it should be under the table, right side. This is my html <nav…
-
1
votes2
answers80
viewsScript syntax error jQuery product variation
I have a script in jQuery, which basically filters the product variations of Woocomerce Wordpress and selects the desired option by adding the attribute "Selected", the big problem is that, I have a…
-
1
votes1
answer142
viewsDoubt to add values with for in Javascript
Guys, I have the following PHP/HTML page: <?php include_once("conexao.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible"…