Click here to Skip to main content
Sign Up to vote bad
good
See more: JavascriptjQuery
I have a Textbox which contains comma separated values like this tags1,glassware,cermamics
 
Now I need a solution user only type maximum 16 character before (,) comma. and Total comma separted value not more than 20. I am Unable to handle this.
 
Please provide me your best solution.
 

Thanks & Regards
Prince Sharma
Software Developer
Seasia Infotech Pvt. Ltd.
Posted 8 Feb '13 - 19:18

Comments
Sergey Alexandrovich Kryukov - 9 Feb '13 - 1:23
Why torturing your user that badly?! What did you try? —SA
Sandeep Mewara - 9 Feb '13 - 14:27
Any effort?
VishwaKL - 10 Feb '13 - 23:57
its not a good idea, to stop the user, if the user want enter more value then you have to change the code again, dont restrict the user
BrianHamilton - 21 Feb '13 - 14:50
Would need to see your code but you could use a regular expression, String.split or a variation of substr and indexOf()

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 216
1 Sergey Alexandrovich Kryukov 169
2 Tadit Dash 154
3 Richard MacCutchan 145
4 Santhosh G_ 125
0 Sergey Alexandrovich Kryukov 10,338
1 OriginalGriff 7,965
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,159


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid