Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. R

    JavaScript Chrome not asking permission to use camera

    I have this code <video id="webCam" autoplay playsinline></video> <canvas id="canvas"></canvas> const webCamElement = document.getElementById("webCam"); const canvasElement = document.getElementById("canvas"); const webCam = new webCam(webCamElement, "user"...
  2. R

    Dropdown check-list not rendering properly

    I am trying to implement this dropdown checklist from codepen, but its not rendering properly like this Instead, it displays as below When I click on the icon, the icon flips, but the list does not render like this instead, the icon flips, b tut this list does not display Then after...
  3. R

    HTML & CSS Horizontal scrollbar below table

    I have 2 tables side by side inside a container div, flex direction row. As you can see from the screenshot, the horizontal scrollbar of the right table is overlapping the bottom row of the table, which I don't want. Is it possible to have the horizontal scrollbar below the table, so the last...
  4. R

    Sticky columns

    Does anyone know a solution for borders in sticky columns @125% scale? I have a table in a div that has 16 columns, 15+ rows, including a header row. The first 4 rows are positioned sticky. The problem is at 125% scale, borders are not behaving consistently. With border collapse set to...
  5. R

    CSS sticky columns

    I have a table with 10 columns. I want the header row, first three columns and the last column sticky. I have managed to get the header row and first column sticky with the code below. table{ table-layout: fixed; width: 100%; height: 100%; } table thead tr th{ width...
  6. R

    JavaScript Count decreases automatically

    I am using jQuery.inArray() If a checkbox id is in an array of id's (not equal to -1), and is checked, increase a count by 1. This works. If a checkbox is unchecked, decrease the count by one, count--. When I display the count after count-- is applied, the count is -1, not 0. Why did the...
  7. R

    JavaScript JavaScript not adding event listener

    I have the following code that adds a new row to a table, then replaces an add button with a delete button var table = $('#Table'); var lastRow = table.find('tr:last'); var clone = lastRow.clone()...
  8. R

    JavaScript Replacing (Toggle) classes

    How do I toggle a classname in a multi-class div? In the head section: <div class="row none" id="DivId"> .......... </div> .row.none{display: none;} .row.flex{display: flex;} var Id = $("#DivId").classList; Id.addClass("flex").removeClass("none");
  9. R

    Sticky columns with scrollable columns not overlapping

    I have a table with 10 columns and 10 rows and a header row. I want the header row, first three columns and last column to be sticky, sticky columns 100px width. It seems table-layout fixed works with fixed column width, but does not prevent scrollable columns from overlapping. The vertical...
  10. R

    JavaScript RemoveEventListener not working

    I have a html table as such: cell1 input button with AddRow click event, cell2 input text, cells 3 & 4 input number. Onclick gives me this I want to replace the AddRow with a DeleteRow on the button on the preceding row. The removeEventListener isn't working. var...
  11. R

    HTML & CSS HTML accordion with flex

    I have this and this when Department 1 button is clicked The CSS positioning is using absolute, however I want to change this to flex which I'm new at. This is my CSS #Departments{ margin: 10% 10% 10% 10%; } .collapsible{margin: 0 0 0 0; width: 100%; height: 50px;} .content{display...
  12. R

    JavaScript JQuery JSON updating sql

    I am trying to update an league table with game scores. On game start 0-0, games played, games drawn and pts won increase 1 for both teams. After a team scores, one team's draw becomes a win and gets 2 more points, goals for increases by 1, the other team's draw becomes a loss and loses a...
Back
Top Bottom