I have the following JavaScript code shown below:
<script type="text/javascript"> $(document).ready(function() { var string = document.location; var string2 = string.split('/'); }); </script>
When I run this code, the following error appears in the Firebug console:
string.split is not a function var string2 = string.split('/');
What is the reason for this error?
javascript jquery split
Eric Apr 13 2018-12-18T00: 00Z
source share