Javascript function in laravel not working in IE-working fine in other browsers why?
Click me
1 2 3 4 5 6 |
<script language="javascript"> function (firstparam=2,secondparam=null) { return result; } </script> |
Function stops works in IE because of the above code, dont give default value or some values in the fucntion definition remove “firstparam=2,secondparam=null” in the function definition so please use the function name as below it will work in all browsers
1 2 3 4 5 6 |
<script language="javascript"> function (firstparam,secondparam) { return result; } </script> |