I am a novice web developer working on my first application, a small CRUD project. Here is the code I have so far:
<template>
<CRow>
<CCol col="12">
<CCard no-header>
<CCardBody>
<h3>
Create Note
</h3>
<CAlert
:show.sync="dismissCountDown"
color="primary"
fade
>
({{ dismissCountDown }}) {{ message }}
</CAlert>
<!-- Rest of the code goes here -->
</CCardBody>
</CCard>
</CCol>
</CRow>
</template>
<script>
// JavaScript code goes here
</script>
<style>
// Styling code goes here
.invalid input, textarea, select, checkbox {
border-color: red;
}
</style>
Currently, the font color and input border change automatically after clicking "Save". I want the border to appear only on empty inputs. How can I achieve this functionality?
Your help will be greatly appreciated! :)