Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
gerome0123
@gerome0123
i mean any suggestion to make pleasant in the eye
even thou so many entries
Roshith R
@Roshith93
Help Needed!!
Dhaval Vira
@dhavalveera
Say
Roshith R
@Roshith93
I have 4 select options in my pages. So if I choose any of the select options, i need go get the id of which select option is selected.
using jquery
Markus Kiili
@Masd925
@Roshith93 One way is to use options and selectedIndex properties of the selectElement. https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement
mustimuu
@mustimuu
Hello guys
I can't see my widget in my backend wordpress
Any suggestions?
Mohit Garg
@mohitgarg
Hey guys
Can anyone help me with the CSS?
Dhaval Vira
@dhavalveera
Yes say @mohitgarg
Kingsley
@Kingwindie
for (i = 0; i < 6; i++) {
    var tableFooter = document.createElement("tfoot");
    tableFooter.style.backgroundColor = "gray";
    tableFooter.style.height = "35px";
    tableFooter.style.textAlign = "center";
    tableFooter.textContent = "footer";
    table.appendChild(tableFooter);
}
how can i make the footer go across the screen horizontally instead of vertically
Stephen James
@sjames1958gm
@Kingwindie You will probably need to make the elements inline or inline-block to get horizontal behavior
Kingsley
@Kingwindie
@sjames1958gm i tried that it just moves it to the top next to the table head and everything is squished together
there's probably a flaw in the rest of my code i haven't figured out
var table = document.createElement("table");
// table.style.backgroundColor = "darkblue";
var columns = 6;




const images = ["/images/dog.jpg", "/images/dragon.jpg", "/images/horse.jpg", "/images/monkey.jpg", "/images/ox.jpg", "/images/pig.jpg", "/images/rabbit.jpg", "/images/ram.jpg", "/images/rat.jpg", "/images/rooster.jpg", "/images/snake.jpg", "/images/tiger.jpg"];








for (var i = 0; i < columns; i++) {
    /**table header */
    var tableHeader = document.createElement("th");
    tableHeader.style.width = "250px";
    tableHeader.style.height = "35px";
    tableHeader.style.lineHeight = "35px";
    tableHeader.style.borderStyle = "solid";
    tableHeader.style.borderColor = "black";
    tableHeader.style.backgroundColor = "red";
    tableHeader.style.borderWidth = "2px";
    tableHeader.style.color = "white ";
    tableHeader.style.textAlign = "center";
    tableHeader.textContent = "names";
    table.appendChild(tableHeader);


}




/**table body */
var tableBody = document.createElement("tbody");
table.appendChild(tableBody);

for (i = 0; i < 6; i++) {


    /**table data,inserts into table body */
    var tableData = document.createElement("td");
    var thisImg = document.createElement("img");
    thisImg.src = images[i];
    tableData.style.height = "250px";
    // tableData.style.width = "auto";
    tableData.style.lineHeight = "35px";
    tableData.style.borderStyle = "solid";
    tableData.style.backgroundColor = "purple";
    tableData.style.borderWidth = "2px";
    tableData.style.color = "white ";
    tableData.style.textAlign = "center";
    tableData.innerHTML = "<p>Paragro</p>";
    tableData.appendChild(thisImg);
    table.appendChild(tableData);
    // tableBody.appendChild(tableData);
}




for (i = 0; i < 6; i++) {


    /**table data,inserts into table body */
    var tableData = document.createElement("td");
    var thisImg = document.createElement("img");
    thisImg.src = images[i];
    tableData.style.height = "250px";

    tableData.style.lineHeight = "35px";
    tableData.style.borderStyle = "solid";
    tableData.style.backgroundColor = "purple";
    tableData.style.borderWidth = "2px";
    tableData.style.color = "white ";
    tableData.style.textAlign = "center";
    tableData.innerHTML = "<p>Paragro</p>";
    /*** */
    var tableFooter = document.createElement("tfoot");
    tableFooter.style.backgroundColor = "gray";
    tableFooter.style.height = "35px";
    tableFooter.style.textAlign = "center";
    tableFooter.textContent = "footer";
    table.appendChild(tableFooter);
    tableData.appendChild(thisImg);
    tableBody.appendChild(tableData);

}



// document.body.appendChild(rowOne);
document.body.append(table);
Stephen James
@sjames1958gm
@Kingwindie Should you have table rows before table data?
If not shouldn't you append your tableData to your table body not your table directly?
Kingsley
@Kingwindie
wait,i'm confused
the table data is appended to the table body
Stephen James
@sjames1958gm
table.appendChild(tableData);
Kingsley
@Kingwindie
?? is that the wrong way or the right way to do it?
mustimuu
@mustimuu
Can someone help me?
I can see my fidget field is registrered in the wordpress backend
But i cannot see the widget
Stephen James
@sjames1958gm
@Kingwindie Shouldn't you append them to the tableBody element to get them inside that
Hierarchy
table
   tableBody
      tableData
mustimuu
@mustimuu
Can someone help me with a small knowledge in PHP?
Kingsley
@Kingwindie
@sjames1958gm hang on let me look at my code again
Kingsley
@Kingwindie

if i do that for both table bodies it places all the images in a single block,which is not what i want,i have 12 images and i want to display 6 at the top and six below it,now each image should have a name at the top and a year below it,so if i do

table
     tableBody
           tableData

it will mess up the structure of six images at the top and six below @sjames1958gm

this is frustrating
mustimuu
@mustimuu
my god i need some help
Stephen James
@sjames1958gm
@Kingwindie Do you need table rows?
table
     tableBody
            tableRow
               tableData
            tableRow
               tableData
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody
This page indicates that table rows go inside table body
zootechdrum
@zootechdrum
hey good morning
trying to use regex but it dosent seem to activate
function translatePigLatin(str) {

  var vowels = ["a","e","i","o","u"];
  var matched = /^[cbdfghjklmnpqrstvwxyz]{1,}]/i;

  var matched_Arr  = str.match(matched);

  return matched_Arr;
}

translatePigLatin("consonant");
right now its in all white text or in this case all purple
I am sure i am missing a slashh somewhere lol
zootechdrum
@zootechdrum
more clearly i am returning null so its not matching anything maybe something else is wrog
Elia
@elia-russad
what are u trying to match?
zootechdrum
@zootechdrum
@elia-russad non vowels
so consonants
matches on the website but dosent on freecodecamp
using this website
Elia
@elia-russad
well this ^[cbdfghjklmnpqrstvwxyz]{1,}] selects nothing
so u get null