I have a script that works great, but I need the background color to return to its original state when you leave or click outside the .test
Is there a way to make it toggle back after clicking out of the .test?
Here is my code:
<script type="text/javascript">
$(document).ready(function() {
var input = document.getElementById("test");
input.onclick = function ()
{
document.getElementById("quote_input").style.backgroundColor = "#AAB3AA";
document.getElementById("test").style.backgroundColor = "#AAB3AA";
};});
</script>