I have a HTML table in my /views/
file and want to sort some of the columns. I've downloaded "sorttable.js" into my public/javascript
folder and added the following in my file in views:
<script src="public/javascripts/sorttable.js"></script>
<table class="sortable">
Nothing is coming up. Any ideas why?
Try pointing the javascript to the proper folder: (you dont need to specify public/ )
<script src="/javascripts/sorttable.js"></script>
<table class="sortable">
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.