I'm new to Jquery. I'm just trying to add only one single decimal value in a textbox using Regex. As it allows ".". But, I need to restrict to only one ".". Can any one suggest me in doing that? Any help would be greatly appreciated.
My code is :
$("#cashReceived").filter_input({regex:'[0-9-.]'});
Thank you.