开发者

Why doesn't Javascript sorttable work in Ruby application?

开发者 https://www.devze.com 2023-02-27 06:24 出处:网络
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:

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开发者_如何学C 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">
0

精彩评论

暂无评论...
验证码 换一张
取 消