search

Home  >  Q&A  >  body text

Teacher, what is the difference between the following two methods?

Teacher, what is the difference between the following two methods? If it is to position the Input, which one is better?

$("input[class='one']").css();

$(".one").css();

< input class="one" type="text"/>

善為善為2221 days ago1034

reply all(2)I'll reply

  • 秋香姐家的小书童

    秋香姐家的小书童2019-01-07 09:05:08

    No difference: an object found by element and an object node found by CLASS

    reply
    1
  • Cancelreply