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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sourabh SomaniPosted Jul 20, 2015, 9:07 AM
<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>