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
answer1001
viewsSending two or more request by form with ajax
Good afternoon guys, I want to know how I can send more than one form request to my Controller to do the relationship in the bank ? I have a relationship N:M with User and Group, only when I give…
-
1
votes1
answer96
viewsHow to have a unique id and then recover that id on the php page to write to the database
Hello, I created these functions that create new multiple choice questions automatically on my page. I can create as many questions as I want, and in those answers I can have as many answers as I…
-
1
votes1
answer1154
viewsSet Menu Bar on Top
I am working on a site that the HTML Menu is not alterable. I want that when the user scrolls from the mouse to the menu bar, it becomes fixed at the top of the page, respecting the distance of…
-
1
votes1
answer265
viewsRemove "floating" div in the responsive
I have the following HTML structure: <div class="container"></div> <div class="card encontreundiade"> <div class="card-body p-3"> <form id="formcontato" class="p-0">…
-
1
votes1
answer161
viewsDoubt Js code for div exchange
I have a site in Wordpress and I’m having difficulties in the following function, I created a small script, that when clicking a button, it should replace a div for another, to exchange content…
-
1
votes1
answer101
viewsHow to make an alert close to the return date?
I am developing a library system for an institution, but I am having difficulty making an alert when the return date is near or leave the fields in red when a student does not deliver the book on…
-
1
votes1
answer437
viewsNavbar bugada in the resposivo
My site has a bug that I don’t know when it started, it was working normally, when I clicked on the burger menu the menu went down with the options with a white background and below on Nav, but now…
-
1
votes2
answers349
viewsLoad the contents of one <TD> onto another <TD> ADVPL ASP
I have a doubt in a code that uses advpl(Microsiga Protheus) more HTML. I need in the html part, that the content of a TD be captured at the time of writing, and assigned in another TD. Below is the…
-
1
votes2
answers3759
viewscenter vertically Row bootstrap 4
I needed to center this Row in the middle of the page, following the bootstrap documentation, tells me to put align-items-center along with Row, I did, but nothing has changed. my html structure is…
-
1
votes0
answers360
viewsCreate filter in a graph
I have the following chart that works with the following code: <html> <head> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>…
-
1
votes1
answer1948
viewsValidate Forms in Materialize
How can I validate forms by Materialize? I’m trying to use the jquery-validate for this but does not work, I put the rules and even when a rule is invalid the field still turns green. How can I make…
-
1
votes1
answer388
viewsHow to clear search results in a list after clicking a button?
I have a list of items and a search field that filters this list as something is typed in this same box. I also have a button for reset that cleans the search box and focuses on it, but does not…
-
1
votes2
answers1496
viewsHow to keep 2 elements in the same row Grid bootstrap 4
What I need is this: What I tried to do with the knowledge I have in bs4 and grid was the following: <div class="card-body"> <h5 class="card-title">Pizzaria 1</h5> <hr…
-
1
votes1
answer754
viewsShow output from a JSP page Servlet list
I need to capture an input name, query the database and return the result on a jsp page. I want to show the result in a short snippet of the JSP page, in case I mix the text of the JSP page with the…
-
1
votes1
answer395
viewsJSON States and Cities Select ZIP Problem
Good afternoon, I’m having a problem with my select of states and cities. When I type one ZIP CODE it fills in the fields automatically, I can already fill in the State even though he is a select…
-
1
votes1
answer540
viewsUncaught Typeerror: Cannot read Property 'addeventlistener' of null
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>javascript</title> </head> <style> body, html { font-size: 150% } body { color:…
-
1
votes2
answers2667
viewsInteractive form in HTML and PHP
I have an activity and I’m stuck on it: Create a program in PHP, where the form has choices of geometric figures (triangle, square, rectangle and trapezoid). As soon as the user selects the figure,…
-
1
votes4
answers1009
viewsImage occupy entire column
I have the following html structure: <div class="col-8 ml-2 bg-secondary"> <h3 class="">Ultimas Notícias</h3> <div class="card"> <div class="row"> <div class="col-3…
-
1
votes1
answer72
viewsRadiobutton on the Repeater?
I need to make an Oncheckedchanged on a Radiobutton inside a Repeater, but I could not do it the normal way. there is how to create an event on a radiobutton inside a Repeater? <asp:Repeater…
-
1
votes1
answer106
viewsCreate type=Submit input inside the calendar code
Calendar code with checkboxes on each day of the month to mark meals: <?php # PHP Calendar (version 2.3), written by Keith Devens function generate_calendar($year, $month, $days = array(),…
-
1
votes1
answer745
viewsProblem with background and linear-gradient
I’m trying to make a background for the body using an image and a linear-gradient, on loading the gradient appears for an instant, but is soon replaced only by the image, as you can see below. body…
-
1
votes3
answers386
viewsBackground image, without using background-image
In the code below you will see the solution of @hugocsl to another question my. What I am wanting to do now is to put in this element, a background image without using background-image but with…
-
1
votes1
answer60
viewsinsert only the row that receives value in the date column
I have this code: <?php $result_cursos = "SELECT nome, Quarto FROM centrodb.utentes WHERE descricaovalencia = 'LAR' AND nome <> 'CLASSE' AND ativo = '1' ORDER BY nome ASC;";…
-
1
votes0
answers27
viewsChange background menu css scroll on
Good evening, I’m racking my brain trying to change the background color when using the scroll but I haven’t succeeded yet. The menu code is: <header class="xs-header-section xs-header-height…
-
1
votes2
answers217
viewsPosition: Fixed, use or not use? Substitutes
I recently attended a lecture from Sérgio Lopes , in which he speaks that NAY if you should use position Fixed on mobile. According to him, this position brings huge problems in the mobile browser,…
-
1
votes2
answers55
viewsGenerate dynamic borders
I have the following form: <input type="number" min="0" value="0" /> <input type="number" min="0" value="0" /> <input type="number" min="0" value="0" /> <input type="number"…
-
1
votes0
answers39
viewsSum of data from an array using condition
I’m developing a system, and I’m doing the following test. In this case, I have a number of records related to the drop of links and I need to add these results if the difference between them is…
-
1
votes2
answers1557
viewsChange the color of an SVG by a button
I have a rasteirized and inline SVG on a page. and I need to change the color of this svg as the user clicks on a given button. In this case I have several buttons, each one responsible for changing…
-
1
votes0
answers130
viewsPHP & Ziparchive() - Failed to load PDF document
Good afternoon, I have a form that in certain input is opened a window or multiple windows to display a PDF(or PDF’s) specific(s). The folder where the path is, there may be only a PDF or a ZIP file…
-
1
votes2
answers266
viewsButton to select which carousel to display
I created two carousel one of Illustration and the other of Plan of a house, and I need two buttons, Illustration and Plant, when loading the page, will show the illustration carousel as main, and…
-
1
votes1
answer43
viewsCSS does not access the button inside the if
The CSS is working with the button inside the else but it does not work with the button located inside the if. The button inside the if refers to the page with the logged in user and the else with…
-
1
votes2
answers623
viewsHow to use css to overwrite half of another DIV that is overflow without using position: Fixed?
I would like to know how to use CSS to put a DIV without position:fixed about the half of another that this with overflow. I’d like it to stay that way: The sample code I’m using is: .div1 { width:…
-
1
votes1
answer245
viewsAjax with html checkbox
I’m having trouble getting the value of the checkbox selected, php is taking the value of all checkbox including those that were not selected. How would Ajax pass PHP only to those selected? HTML…
-
1
votes1
answer373
viewsPicking up text within a <ul> PHP list
Hello, I am creating a project I need to get some texts within a list on another site, I will show you how I need; I’m using the file_get_contents; $url = "www.site.com"; $html =…
-
1
votes1
answer475
viewsDynamic Select/Option filter
var escolas = ["UFSCAR", "USP"]; //var alunos = []; $(document).ready(function() { escolas.forEach(function(item) { $('select.lista-escola').append('<option>' + item + '</option>'); });…
-
1
votes1
answer180
viewsmaxlength plugin in ckeditor does not work
I need to limit the number of characters in the Ckeditor. I followed the step by step of this topic: Limiting text in CKEDITOR But it didn’t work. Below the changes made to my code: <textarea…
-
1
votes1
answer61
viewsHow to change the value of a custom attribute?
I want to change the value of a custom attr via jquery, but without success. Follow the code below: $("#botao-01").click(function() { $("#img-screen").attr("data-image","img/bauru-02.jpg"); });…
-
1
votes1
answer134
viewsMy POST is not sending anything
IN HTML: <form method="post" action="../../../consulta.php"> <input type="text" class="form-control" name="login" id="flogin" placeholder="Insira o seu Login"> <input type="submit"…
-
1
votes1
answer8764
viewsPlace image in header/footer
I am hours away trying to adjust the position of an image in the footer, and after I have to adjust another image to the header, I am new to html/css and would like to ask for help because I need to…
-
1
votes2
answers917
viewsSelecting previous CSS element
I’m trying to select the other parent element of a table, but this not rolling track CSS. HTML <table> <tr> <td> <div> <input type="radio" class="voo-radio"…
-
1
votes1
answer836
viewsAjax does not work with Modal Bootstrap
Hello, I have the following code, where the Modal Bootstrap opens from a BD search when I click on an item from the returned list: <input type="text" name="pesquisa" id="pesquisa"> <table…
-
1
votes1
answer157
viewsCompare different div attributes from the same html file
my question is: I have a div with a checkbox and another with an image, I would like that after the user marks the div with checkbox and clicks on a confirmation button, my js function checks if the…
-
1
votes1
answer27
viewsShow variable in specific location with a div
I have this while where I created a variable before the while to then get the total of a column: $Total = 0; while($rows_cursos = mysqli_fetch_array($resultado_cursos)) { $teste =…
-
1
votes1
answer337
viewsSearch/confirm button and clear field
I need that when the user clicks on the button "SEARCH/CONFIRM" open a new window in the browser asking for SELECT one of the categories that comes directly from the database, and when selecting the…
-
1
votes1
answer31
viewsFunction . not() does not work correctly
I have the following code HTML: <div id="mini-cart" class="mini-cart dropdown is-not-empty"> <span class="ic-cart"></span> <span class="count-cart"…
-
1
votes3
answers86
viewsConditional with if and Else
I have two buttons, one is Greater and the other is Minor to return the following: I have two fields where I type a value in each. The first (larger) button has to return me which of the two numbers…
-
1
votes4
answers1182
viewsChange placeholder by checking radio with jquery
Hello, I’m trying to change the placeholder of an input by checking between 2 radio input values. Below is the js I tried to mount and html. $(document).ready(function () {…
-
1
votes2
answers870
viewsHow to use a file . JSP
I am extremely new in JSP language, I wanted to know how to use a jsp file that I created and display for example in the browser, the same way I do with html files, ie how to use a jsp file…
-
1
votes2
answers11440
viewsHow to position a button anywhere on the screen, in html
I’m trying to position a button type "button" in the center of the screen. For this, I put it in a div, and applied to that div one css that arrow your position on the window. However, the button…
-
1
votes1
answer26
viewsError when changing a generated content within a <span> tag, automatically generated in Woocommerce
Trying to change the automatically generated "New!" word in Woocommerce as below: <span class="label-new">New!</span> And using the jQuery section below <script>…