[CSS] & [JQUERY] [selettore] :text

:text (selettore CSS e jQuery) (solo jQuery) riguarda gli elementi HTML che siano di tipo <input> con attributo type di valore text.

Sintassi

$(":text")

Esempi

<script>
jQuery(document).ready(function($){
$("#text_jquery :text").css({ "width": "200px", "height": "100px", "border": "1px solid black", "border-radius": "20px", "background-color": "yellow" });
});
</script>
<div id="text_jquery">
<input type=text>
</div>

Contenuti correlati

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

Fonti esterne

jquery, selettori css e jquery

Related Articles

0 Comment

Rispondi