asp.net - change LinkButton style attribute from javascript -
i want change style
attribute
of linkbutton
through javascript
javascript, tried working dropdownlist
not linkbutton
.
here code
</asp:listitem> <asp:listitem text="vikas" value="0"> </asp:listitem> </asp:dropdownlist> <asp:linkbutton id="lnkbtnsave" style="display: none" text="save" runat="server"></asp:linkbutton> <asp:linkbutton id="lnkbtncancel" style="display: none" text="cancel" runat="server"></asp:linkbutton> <asp:textbox id="lnkbtntest" style="display: none" text="hope" runat="server"></asp:textbox> <asp:linkbutton id="lnkbtnchangehr" text="change hiring manager:" runat="server" onclientclick="javascript:return visible(this.id);"></asp:linkbutton> </div> <script type="text/javascript" language="javascript"> alert('dil sambhal ja jara'); function visible(me) { alert(document.getelementbyid(me.replace("lnkbtnchnagehr", "lnkbtntest"))); document.getelementbyid(me.replace("lnkbtnchangehr", "ddlhiringmanager")).style.display = 'inline'; document.getelementbyid(me.replace("lnkbtnchnagehr", "lnkbtnsave")).style.display = 'inline'; document.getelementbyid(me.replace("lnkbtnchnagehr", "lnkbtncancel")).style.display = 'inline'; document.getelementbyid(me.replace("lnkbtnchnagehr", "lnkbtnchnagehr")).style.display = 'none'; document.getelementbyid(me.replace("lnkbtnchnagehr", "lnkbtnsave")).style.color = "#f6f6f6"; document.getelementbyid(me.replace("lnkbtnchnagehr", "lnkbtncancel")).style.color = "#f6f6f6"; document.getelementbyid(me.replace("lnkbtnchnagehr", "lnkbtntest")).style.display = 'inline'; alert(document.getelementbyid(me.replace("lnkbtnchnagehr", "lnkbtncancel")).style.display == 'none'); return false; } </script>
sorry guys picnic
it lnkbtnchangehr not lnkbtnchnagehr
Comments
Post a Comment