You can disable form fields by using some CSS. To disable form fields, use the CSS pointer-events property set to “none”.
<!DOCTYPE html>
<html>
<head>
<title>How to Disable Form Fields with CSS</title>
<style>
input[name=yourName] {
pointer-events: none;
}
</style>
</head>
<body>
<input type="text" name="yourName" value="blog it">
</body>
</html>