: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>
0 Comment