Script not working suddenly
This Script for getting clicked button value
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sourabh SomaniRank #37 · 35.5K reputationPosted Jul 20, 2015, 5:07 AM EDT
<html>
<body>
<button class="button">Click Mebutton>
<script src="http://code.jquery.com/jquery-2.1.4.min.js">script>
<script type="text/javascript">
$(document).ready(function () {
$('.button').bind('click', function () {
alert("Select Value");
alert($(this).val());
});
});
script>
body>
html>