jQuery error in IE: Unexpected call to method or property
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.
精彩评论