Categories | Question details Back To List | ||
"." in Combobox with search The "." (dot) is being replaced by " "(space) when i type in text. What can I do to solve the problem ? P.S. Thanks form wonderful component Answer posted by Support on Jan 25, 2008 03:06 Combo box uses regexps for filtering, as result "." act as any char while auto-search You can locate next string in dhtmlxcombo.js try{ var filter=new RegExp("^"+text,"i"); } catch (e){ var filter=new RegExp("^"+text.replace(/([\[\]\{\}\(\)\+\*\\])/g,"\\$1")); } and replace it with var filter=new RegExp("^"+text.replace(/([\.\[\]\{\}\(\)\+\*\\])/g,"\\$1")); it must create correct regexp in your case |