Dear All ,
I'm stuck here finding click on button i'm getting value ,
But there problem is when i'm click on button i'm getting val that value can check in commas
values button selected value is there are not
Example : -
Var Result="1,2,3,4,5,6,7,8,9,0";
my button val is : - 8
i need to find 8 value in Results variable if its match get one alert massage .
Any one knows this please help on this Thanks .


Manas MohapatraRank #182 · 13.2K reputationPosted Jul 21, 2015, 2:51 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 21, 2015, 3:23 AM EDT
Hello ,
$(document).ready(function () {
$("#btnClick").click(function () {
alert('in');
var Result = "1,2,3,4,5,6,7,8,9,0";
if (Result.indexOf($("#btnClick").val()) > 0) {
alert("found");
}
});
});
script>
<asp:Button ID="btnClick" runat="server" ClientIDMode="Static" OnClick="btnClick_Click" Text="Add" />
Lucky Laxman92 reputationPosted Jul 21, 2015, 3:33 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 21, 2015, 3:35 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jul 21, 2015, 3:36 AM EDT