Seeking assistance on how to create a light-off effect when clicking on any of my textboxes.
I discovered this concept on the following website:
What I aim to achieve is that upon clicking a specific textbox, it will be highlighted. Upon clicking the same textbox again, the light-off effect should be removed.
Is there anyone who knows how to accomplish this?
Here's the HTML code:
<input type="text" readonly id="myname1" style="width:1000px; height:30px !important " />
<br />
<br />
<input type="text" readonly id="myname2" style="width:1000px; height:30px !important " />
And here's the script code:
<script>
$(function(){
$('#myname1').on('click', function(){
alert(1)
})
})
$(function(){
$('#myname2').on('click', function(){
alert(2)
})
})
</script>