Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
10
Comments
2
Sahiru
@bhatsahil13579

All comments

  • cryptososso•150
    @cryptososso
    Submitted over 2 years ago

    interactive-rating-component

    2
    Sahiru•220
    @bhatsahil13579
    Posted over 2 years ago

    Nice job cryptososso 😀

    Here are some feedbacks

    Your all buttons are having borders you can remove them simply by adding ( border : none)

    In Js Part :

    i see that you have added event Listener for each button separately but you can do it by only adding event Listener one time through ForEach method like this :

    btn.forEach(elements => 
       
    elements.addEventListener("click", () => {
    }
      })
    

    but make sure you have selected that element by querySelectorAll

    and also there is no need for score1 , score2 like that you can simply do it like this :

    btn.forEach(elements => {``
       
    elements.addEventListener("click", () => {``
       
     rateScore.textContent = elements.textContent
    }
     })
    

    and i can click submit button without submitting rating to stop that add disabled attribute to your all rating buttons and then in js you can remove that attribute if the click is true like this

    btn.forEach(elements => {
       
    elements.addEventListener("click", (task) => {
         
    rateScore.textContent = elements.textContent
        
     if (task) {
        
    btn.removeAttribute("disabled"  )
          }
    
       })
    }
     }) 
    

    hope it will help you 😀😀

    Marked as helpful
  • Abraham Phillips•10
    @AbrahamTheWebDeveloper
    Submitted over 2 years ago

    Product preview card component

    1
    Sahiru•220
    @bhatsahil13579
    Posted over 2 years ago

    .card { width : 700px }

    it will expand picture container and card info container both

Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub