how to check the link button visible in jquery. Below code is not working?
if ($('id*="LnkBtn"').is(':visible')) { // check visibility
if (!Validatechecked("SrvRgnMDD")) {
$('#<%=Valid.ClientID%>').html("*");
passtest = false;
}
<asp:LinkButton ID="LnkBtn" runat="server" Text="Show Details" AutoPostBack="true"
CausesValidation="False" OnClick="MktallocLnkBtn_Click" />
Try fixing your selector – I’m assuming you want to use the attributes selector
to
Though if you are trying to target only one element.. Just use the ID selector
You can read up on the different selectors here http://api.jquery.com/category/selectors/