加载jquery时遇到问题

时间:2015-02-09 14:07:55

标签: javascript jquery html

我是jquery和js的新手,所以不要判断;) 所以,我将脚本保存在服务器上,但由于某些原因它没有加载,你可以通过访问我正在测试@ http://smit1.byethost7.com/Test/form/form4.html的网站查看代码 如果你能告诉我我做错了什么那么那就太棒了,谢谢!

<html>
    <head>


<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="http://smit1.byethost7.com/Test/form/form.js"></script>

    <body>
        <form class="form-horizontal" id="whereEntry" method='post' action=''>
            <fieldset>
                <input type="text" class="income_count span1 register_input" id="income" name="income" placeholder="% of income"><br>
                <input type="text" class="income_count span1 register_input" id="income_2" name="income_2" placeholder="% of income"><br>
                <input type="text" class="income_count span1 register_input" id="income_3" name="income_3" placeholder="% of income"><br>
                <input type="text" class="income_count span1 register_input" id="income_4" name="income_4" placeholder="1 of income"><br>
                <input type="text" class="income_count span1 register_input" id="income_5" name="income_5" placeholder="% of income"><br>
                <input type="text" class="income_count span1 register_input" id="income_6" name="income_6" placeholder="% of income"><br><br><br>

                <input type="text" class="span2 register_input" id="income_sum" name="income_sum" placeholder="% of income"><br>
            </fieldset>
        </form>
    </body>
</html>

2 个答案:

答案 0 :(得分:0)

您需要在HTML文件中实际加载jQuery。

<script type="text/javascript" src="PATH_TO_JQUERY"></script>

答案 1 :(得分:0)

您需要在代码中加入jquery.js。试试这个,包括来自Google CDN的文件:

<head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <script src="http://smit1.byethost7.com/Test/form/form.js"></script>
</head>