This topic is locked

Additionalal code to Limit characters in text area

1/10/2011 8:36:35 AM
PHPRunner General questions
M
mmponline author

I refer to the topic in tips and trick on limit of characters in text area.
This works great. I need one ammendment to it though. I want the lenght of the field to be dependant on a value of another field's value.

Eg

If Package field's value is "Free" the length of the Info field should be 25

If Package field's value is "Basic" the length of the Info field should be 50

If Package field's value is "Advanced" the length of the Info field should be 1000
How would I ammend the code to achieve this?
Any helpappreciated

M
mmponline author 1/24/2011

Any help on this?