I have the following input:
<input id="input_2_2"
class="medium"
type="file"
tabindex="4"
size="20"
value=""
name="input_2">
I don't have access to the HTML therefore I would like to apply jQuery to change the size to "60".
Please can someone help?
You can use the .attr
method:
$('#input_2_2').attr('size',60);
Use this:
$("#input_2_2").attr("size", "60");
I believe that should work..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With