Build a Palindrome Checker Project - Build a Palindrome Checker

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

i am trying several ways 3 days already and i thought could work !!

<!-- file: index.html -->
<input id="text-input"></input>
<button 

id="check-btn">check</button>
<div id="result"></div>

/* file: styles.css */

/* file: script.js */

const txtInput = document.querySelectorAll('#text-input');
    const chkBtn = document.querySelectorAll('#check-btn');
  chkBtn.addEventListener('click', ()=>{
    if(txtInput===""){
    alert("Please input a value");
    }
  });
   
  

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

Build a Palindrome Checker Project - Build a Palindrome Checker

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Can you post your entire HTML file please?

yes sure

check

Sorry, where? Can you edit your original post to include your entire HTML (and JS) file?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.