All Input display the alert javascript or jquery

All Input display alerts you when modifying javascript input or jquery. Since I thank you.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<input  id="australian-brother" value="" >
<input  id="australian-brother" value="" >
<input  id="australian-brother" value="" >

<script type="text/javascript">
$('#australian-brother').change(function () {
    alert("Thank You Brother");
});
    </script>

You can’t have multiple things with the same ID. Change them to classes instead.

Thanks It worked

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.