开发者

jQuery error in IE: Unexpected call to method or property

开发者 https://www.devze.com 2023-02-14 22:47 出处:网络
i got a message same as this here is my page No problem with chrome I suspect the following code which may be causing the problem

i got a message same as this

here is my page

No problem with chrome

I suspect the following code which may be causing the problem

           function update_cost(){
              开发者_StackOverflow中文版var cost = $( "#amount_CPU" ).val() * CPU_per_unit +
                         $( "#amount_RAM" ).val() * RAM_per_unit +
                         $( "#amount_storage" ).val() * storage_per_unit +
                         $( "#amount_traffic" ).val() * traffic_per_unit;
              $( "#estimated_cost" ).text( "$" + cost );
            }


You have a tag in there that's misspelled around your "estimated_cost" label:

<lable id="estimated_cost"></lable><br />

That should be <label> not <lable>. IE does not know what a "lable" element is so it freaks out.

0

精彩评论

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