IE8 and JQuery's trim()

后端 未结 5 1229
醉梦人生
醉梦人生 2020-12-02 09:07

I am making use of trim() like so:

if($(\'#group_field\').val().trim()!=\'\'){

Where group_field is an input element of type t

5条回答
  •  Happy的楠姐
    2020-12-02 09:48

    As far as I know, Javascript String does not have the method trim. If you want to use function trim, then use

    
    

提交回复
热议问题