JQuery Easy UI LinkButton component, jquerylinkbutton

Source: Internet
Author: User

JQuery Easy UI LinkButton component, jquerylinkbutton

LinkButton component, one of the basic components of easyui

Example:

<! DOCTYPE html> Execution result:



Ps: You can change the button style in css or customize it.

Click to download source code


How can I change the background of the linkbutton in jquery easyui?

Hello!

In easyui, the background of the linkbutton is implemented using background-image: url ('images/linkbutton_bg.png ');. Therefore, if you need to change the background, you only need to make an image, just replace it !!

Use jquery to directly change the content on the page, such as the text of the linkbutton. How can I make the object remain a linkbutton after the change?

No. Controls on the server. When it is displayed on the client, it is converted to the corresponding control on the client. On the client side, you only need to know the id or style name. You can select this control and use it directly (the id and style will not change if they are set on the server side ).
For example:
When you write the code, there is a <asp: LinkButton ID = "LinkButton1" runat = "server"> LinkButton </asp>
When writing jquery, you can directly $ ("# LinkButton1"). text ("I am actually a tag"). Change the text of this LinkButton.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.