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
votes4
answers761
viewsHow to simulate onclick checkbox
Good morning People, I have a form that is a datatable, and I have a button that marks or unchecks, all checkboxes of this datatable, by default these checkboxes are marked, i need that when reading…
-
1
votes1
answer113
viewsDownload files and images
I’m using the code window.open(url, '_blank'); in javascript to download files, it downloads all type automatically, but images it opens the image on a page and not download.
-
1
votes1
answer54
viewsHow to release function only when left-clicking div
Currently I have this code, it checks if you had the click inside the DIV and if you have it will activate the function "okay". The problem is that this function is activated when the right or left…
-
1
votes1
answer59
viewsTop Fixed Sidebar Ad - JQUERY
I liked the display of ads in the sidebar of this site https://exercicios.mundoeducacao.bol.uol.com.br/exercicios-gramatica/exercicios-sobre-os-tipos-predicado-predicativo.htm When scrolling the…
-
1
votes1
answer34
viewsDate format
I need to format date to present on the grid, but I don’t know the best way to do this. I’m doing it this way: $scope.formato[x].dataFormatada = formatDate($scope.consultas[x].data); function…
-
1
votes1
answer34
viewsAdd HTTPS to a website that isn’t at the root
I have a site that he is not at the root, when entering it he adds/portal in front of the link because it is divided into folders inside the root, when accessing the /portal he goes to the index of…
-
1
votes2
answers1068
viewsProblems with event click on jQuery, AJAX, and PHP
I’m having a bit of a complex problem and I hope you can help me. I have a code that makes a query (Via AJAX and PHP) and fills a table with the return of this query. So far so good. Everything…
-
1
votes1
answer212
viewsCreate Codeigniter html components
I’m using CodeIgniter and I don’t know how to create components to embed in my views. I think I should create my components using templates, correct? I have many repeated codes on views but I saw…
-
1
votes1
answer95
viewsHow to know the result number inside a loop with mysqli_fetch_array?
How to know the result number within a loop with mysqli_fetch_array to have a condition that separates the first from the rest? On my table sql only contains a single entire field id. What I want to…
-
1
votes2
answers63
viewsDuplicate content when printing the page
was setting up a page to print with @media print, but when you click on print the content appears duplicated on two different sheets. HTML <div id="printable">CONTEÚDO</div> CSS @media…
-
1
votes2
answers310
views -
1
votes1
answer231
viewsUses Tree line by line
I have the following code: $('#tree1').treed(); I would like every row of my table to be a tree. But only the first line works. I’m trying to use the "Bootstrap Treeview" and nothing calling it so:…
-
1
votes1
answer1370
viewsHow to change TAB color in bootstrap
I want to change the color of when a tab is selected, it is blue, I want to change to black, I also want to change the color of the letters inside the tab, when they are not selected, to gray. How…
-
1
votes1
answer1353
viewsSubmit to the same page and return to the same page
Friends, I have a one-page PHP site that at the bottom of the page has a contact form that submits to the same page. I wanted after submitting the form to return to the same Action to show the…
-
1
votes2
answers126
viewsIs it wrong to create checkboxes with the same name?
Create several checkbox with the same name can be considered wrong? Since the value is what defines the dado of checkbox. Or should I really have names different? <tr>…
htmlasked 5 years, 6 months ago Matheus Ribeiro 143 -
1
votes4
answers687
viewsCSS - styling a hyperlink
I have a hyperlink that I need to style using CSS doing that looks like a button this with clear CSS, my question is that as I call a hyperlink in CSS, already tried with div, already tried to…
-
1
votes2
answers340
viewsForm with two actions
I have the form below and I need two actions: Action 1: Keep the action of the form that sends data to the form website (as it is today - see form below) Action 2: Send data through a URL that will…
-
1
votes1
answer2812
viewsHow to select the ids of a table with checkbox and save in the bank?
How to select some items from a dimanica table coming from the mysql database and loaded into a table using javascript or jquery and set those marked with checkbox to category as 'sport' in the…
-
1
votes0
answers61
viewsAmcharts chart with two lines and zoom
I’m using this chart on my page: // Themes begin am4core.useTheme(am4themes_animated); // Themes end // Create chart instance var chart = am4core.create("chartdiv", am4charts.XYChart); // Add data…
-
1
votes3
answers116
viewsURL does not display symbols
I have a website that sends a URL like this: site.com.br/test.php?s=<p>texto</p> The variable s is used by the page test.php to print a PDF. But on the client’s computer it’s showing up…
-
1
votes0
answers61
viewsSearch words on page and replace
Friends, I wonder if it is possible to create a method that scans an html page or only inside a div, looking for a specific word and replace it with another word. I’m trying to do this because I’m…
-
1
votes1
answer51
viewsImprovements in dynamic content
Good afternoon, I have a function in jquery that I have been improving since I discovered it in forums, it serves to create elements dynamically using jquery /* função que insere e remove cadeia de…
-
1
votes2
answers13141
viewsHelp with jquery Uncaught Typeerror: $ is not a Function
I have a problem with a filter selector, when I choose a city to filter information about it, the browser console shows me the error below. I can’t tell which version of Jquery is being used on the…
-
1
votes1
answer136
viewsProblem with events and functions running multiple times in jQuery code?
Hello. I’m having a very serious problem with events that are triggered several times by clicking a certain button. I have the task management system below: When I click on the status button (That…
-
1
votes1
answer7924
viewsCSS - positioning an element on the right
I want to position the div "bookright" on the right side of the HTML page I think I have the correct CSS code but it’s not working yet. pf see the photo, right now appears under the image, I want it…
-
1
votes3
answers763
viewsHow to enter HTML code in PHP
I have the following PHP code: <?php include("config.php"); if(!isset($_SESSION['user'])){ echo "you are not logged in,please click here to <a href='memberarea.html'>Login</a>"; }…
-
1
votes0
answers37
viewsWhat would an event like in the input range look like?
I am creating a custom progress bar for videos, but I have a certain difficulty in detecting when the user tries to drag the reed through the video bar, I want to simulate something similar to what…
-
1
votes2
answers1150
viewsAnimated placeholder
ola found that answer https://jsfiddle.net/2a1kvcn6/1/ however I cannot keep the placeholder as title, once I type something it disappears, this way the box is without identification .inputAnimado{…
-
1
votes1
answer157
viewsJavascript, handling Unicode code
How can I print the character of a Unicode code? For example: var i = "\u0062"; How do I convert this code to the character it represents?
-
1
votes1
answer507
viewsJavascript, handling escape characters
In a function I get strings in this template message="'J\\xe1'"; //sendo '\xe1' = á I need to turn these bars " " into a single bar ' ' ' to get the Unicode code ace, where this string can be any…
-
1
votes2
answers414
viewsImage rotating automatically
Guys, I have a little problem with my HTML/CSS... Some large-sized images are rotating themselves... Below is a print for you to understand better: Note that the first two images are in the correct…
-
1
votes1
answer263
viewsFill in input with the day of the week according to the date in the previous input
I created two inputs. The first one assigned the pre-filled date in this way: <strong><label for="Data">Data Reserva</label></strong> <input type="date" id="Data"…
-
1
votes1
answer455
viewsEffect of :Hover on an SVG inside the <img> tag
I have a file .svg here and I’m using the tag <img> to display this SVG on the screen but wanted to know if it has how to apply a CSS effect on it as :hover, unused jquery preferably, I’ve…
-
1
votes2
answers29
viewsI am unable to create a dynamic Jjquery Div
I’m a beginner when it comes to Javascript and jQuery and I’m trying to create a dynamic div, my goal is to create an Alert bootstrap whenever the button is pressed but I’m not getting it to…
-
1
votes0
answers240
viewsUsing Spring MVC to upload a Google Hard Drive
I have a jsp page with the following code that uses google Charts and shows the Graphics on the jsp page. When I use a Servlet as a controller it works perfectly. <%@page contentType="text/html"…
-
1
votes2
answers97
viewsAccessing an element within the same element hierarchy
Next, I have this situation: <html> <g class="children"> <g> <rect class="child" data-id="xpto"></rect> </g> <rect class="xpto"></rect> <text…
-
1
votes1
answer40
viewsBug animation menu
I would like the menu effect transition to have the same time when it opens and when it closes. if( 'ontouchstart' in window ){ var click = 'touchstart'; } else { var click = 'click'; }…
-
1
votes1
answer103
viewsclick() does not recognize button inserted dynamically inside tr
Insert items dynamically into a table using the following function: $("#inserir-item").click(function (){ ... $("table#tb-itens tbody" ).append(retorno); } The return variable contains something…
-
1
votes2
answers525
viewsHow to fix CORS error in Node.JS? (Web Crawler)
Well, me and my group of TCC we’re making a website, where his function is fetch products on various websites specializing in Hardware and show which site has the lowest price. We are making the…
-
1
votes2
answers416
viewsResize a child element according to the width of the parent element
I have an h:inputTextarea inside a p:dialog, so: I would like as I resize to p:dialog a h:inputTextarea resize as well, so that when I resize the dialog it doesn’t get as ugly as in the image, and…
-
1
votes1
answer348
viewsCreation of tables through div
I would like to create a table structure that can have a variable number of columns, for example, an hour may have only 3 columns and at another time may have 5 or 6 columns, this number is not…
-
1
votes2
answers321
viewsShow Image before saving to bank
I’m trying to show an image, before saving it in the bank, in an image field. The function I am using is attached: <script type="text/javascript"> function mostraImagem() { var imagem =…
-
1
votes0
answers46
viewsTable Printing Problem
I have a product chart and I’m putting together her layout for printing. I am using the tag so that the column title is repeated to each new page in the print but the customer did not like the…
-
1
votes3
answers78
viewsWhile PHP does not exceed count
How do pro while identify that will exceed the count set in the form and pause before? FORM: <form method="get" action="exercico04.php"> Inicio: <input type="number" name="inicio" value="1"…
-
1
votes1
answer39
viewsDifferent redirects per day of the week
<?php $site[] = 'youtube.com'; $site[] = 'facebook.com'; $destino = rand(0, (count($site) - 1)); header("Location: " . $site[$destino]); ?> Guys, I use this script to do a random redirect. The…
-
1
votes1
answer297
viewshow to make a drawing svg to be only the size of the perimeter and not of a square, as is normal
I have a vector image (SVG) created in Inkscape, but it gets a size (default ?) that is square (the dimensions), but I want the image to be just the size of its perimeter, and not simply width x…
-
1
votes2
answers39
viewshow do I change the background color using Javascript?
i tried this code but it was not. I am beginner and who power is available to take other doubts I will be very grateful. <script type="text/javascript">…
-
1
votes1
answer60
viewsCreate different z-index grid divisions?
It is possible to create grid division on a different z index ? Let’s say I have a row and a column as follows: <div class="row"> <div col-md-6> </div> <div col-md-6>…
-
1
votes1
answer1363
viewsSelect all Children except First with css
<div class="main"> <div class="content"></div> <div class="content"></div> <div class="content"></div> <div class="content"></div> <div…
-
1
votes1
answer63
viewsOnserverclick is not running
I am trying to create dynamic buttons to delete users from a database but onserverclick simply does not run the function. This is my code so far: yourHTMLstring += "<td>" +…