[CSS] & [JQUERY] [selettore] :button

:button (selettore CSS e jQuery) (solo jQuery) riguarda i tag HTML <button> e <input> con attributo type o con valore button.

Sintassi

:button {
  /* codice */
}

Esempi

<script>
jQuery(document).ready(function($) {
  $("#test_1 :button").css("background-color", "yellow");
});
</script>
<div id="test_1">
  <button>bottone</button>
  <input type=button value=input />
</div>


Contenuti correlati

  • CSS
  • HTML
  • JavaScript
  • jQuery
  • PHP
  • SQL
  • WORDPRESS

Fonti esterne

jquery, selettori css e jquery

Related Articles

0 Comment

Rispondi