我打算讓我的文本框可編輯... 所以我從禁用的代碼中刪除了ID ... 即使我在小提琴中測試它不工作... 鱈魚下面.... 我提供我的代碼部分在撥弄我不能夠看到文本框...把我的代碼打成小提琴沒有出現
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>
'cssClass'和'path'不是標準的HTML屬性。 'cssClass'可能可以更改爲'class',但我不知道'path'是什麼。 – icktoofay
如果您確實想要定製屬性,最好在屬性上使用前綴「data-」。對於這種情況,它將是data-css-class。 – vincent