Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Applying JQuery UI css to a textarea element

I'm using JQuery UI for a web based development at the University. I got some forms that I put into a dialog, so I got elements like

<label for="name">ID user</label><input type="text" name="iduser" size="15" id="iduser" class="text ui-widget-content ui-corner-all" maxlength=12  />

But I got some textarea elements like

<label for="name">Description</label><textarea name="description" id="description" class="text ui-widget-content ui-corner-all" value=""></textarea>

The issue: textarea is not taking the css as inputs does, I mean, I got corner rounder textarea as input texts but the font size and font family don't.

like image 464
Felix Avatar asked Mar 23 '26 04:03

Felix


1 Answers

By simply adding:

class="ui-widget ui-state-default ui-corner-all"

To your textarea, it will look like the other controls.

like image 57
Eldelshell Avatar answered Mar 24 '26 18:03

Eldelshell



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!