Try to search your question here, if you can't find : Ask Any Question Now ?

How would you use querySelector method to get this element?

HomeCategory: stackoverflowHow would you use querySelector method to get this element?
julie asked 1 week ago

How would you use the querySelector() method to get the outlined input if it didn’t have a class attribute:

document.querySelector('.red').style.outline = '1px solid red';
<div>
  <p>
    <span></span>
    <span></span>
    <input>
  </p>
  <p>
    <span></span>
    <span></span>
    <input>
  </p>
  <span></span>
  <input class="red">
  <span></span>
</div>
1 Answers
Best Answer
Jyoti answered 1 week ago
Your Answer

16 + 5 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com