Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

95
Views
i was making tic tac toe and got confuse how can i give "x","0"value to all the rows and columns
  <div class="container">
    <div class="box bt-0 bl-0"><span class="text"></span></div>
    <div class="box bt-0">     <span class="text"></span></div>
    <div class="box bt-0 br-0"><span class="text"></span></div>
    <div class="box bl-0">     <span class="text"></span></div>
    <div class="box">          <span class="text"></span></div>
    <div class="box br-0">     <span class="text"></span></div>
    <div class="box bl-0 bb-0"><span class="text"></span></div>
    <div class="box bb-0">     <span class="text"></span></div>
    <div class="box br-0 bb-0"><span class="text"></span></div>
  </div>

I was making tic tac toe and got confuse how can I give "x","0"value to all the rows and columns

This is the js that i have applied

let allboxes=document.querySelectorAll(".box")

for (i=0;i<allboxes.length;i++)


allboxes[i].addEventListener("click",()=>{

    $("div.text").click(function(){
        $(this).closet()
    })
})
    
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!