[jQuery] trim string

2009-09-14 Thread runrunforest
Hi, I have an array like this cat=(com12, com1, cop233, com1.1, sap-12-1) I want to take out all the numbers and "." and "-" signs the desire result is cat=(com, com, cop, sap) how can i do that please ?

[jQuery] $.trim(string) or string.trim()

2009-04-02 Thread yifang
mootools support syntax like this "string".trim() will jquery support such features in the future? thanks.