4
Contributors
4
Replies
6
Views
6 Years
Discussion Span
Last Post by soomro_moon
0

could you explain why through serverside scripting like php? i hope you are aware of changing the textbox properties using a client side script like javascript.

0

You just write all your textbox properties in css file like:

.class1{
font-weight:normal;
}
.class2{
font-weight:bold;
}

You can change your textbox in php like:

if(something)
{
$style="class1";
}
else
{
$style="class2";
}

then use this class for your text box like:

<input type="textbox" name="test" class="<?=$style;?>" />

Edited by Shanti C: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.