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 MohapatraPosted Jul 21, 2015, 6:51 AM
Upendra Pratap ShahiPosted Jul 21, 2015, 7:36 AM
Upendra Pratap ShahiPosted Jul 21, 2015, 7:35 AM
Lucky LaxmanPosted Jul 21, 2015, 7:33 AM
Upendra Pratap ShahiPosted Jul 21, 2015, 7:23 AM
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" />