开发者

Why doesn't Javascript sorttable work in Ruby application?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜