2014-08-27 119 views
-4

我在1030行有這樣的錯誤「Uncaught SyntaxError:Unexpected token ILLEGAL」,但只看這一行。一切正常:引發錯誤,但沒有錯誤

<input type="text" class="text is_required validate form-control" data-validate="isPostCode" name="postcode" id="postcode" value="00-000" onblur="$('#postcode').val($(#postcode').val().toUpperCase());" style="width:150px" placeholder="kod pocztowy" /> 

爲什麼我得到這個錯誤?

+0

'一切都是OK'不,不是這樣的。通過簡單地看問題中的高亮語法,我已經看到了問題。 – 2014-08-27 08:45:55

回答

5

你缺少一個單引號:

onblur="$('#postcode').val($('#postcode').val().toUpperCase()); 
//     here ^^^ 
+0

謝謝。對不起,愚蠢的問題。 – user3669300 2014-08-27 09:58:42

相關問題