change maxlength depending of the option selected
- by tuner3000
I've seen similar questions posted and tried to change them to meet my needs but I don't know enough about javascript to do it.
I need that when a user change the dropdown select, the "titre text field" maxlength is dynamically changed
a, b c and d max maxlength should be 40
and e maxlength should be 2
my code is below, I don't know why but it is…