i have a input field that is accepting url from user and i need to check for trailing slash like so:
- http://www.example.com (add slash)
- http://www.exaple.com/ (ignore)
- http://www.example.com/index.php (ignore)
How could i achieve this in javaScript?
PS .htaccess and php are not the options
Try this –