jQuery UI Widgets Forums Layouts Panel and Responsive Panel Replace html of jqxPanel

This topic contains 2 replies, has 2 voices, and was last updated by  parascus 11 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Replace html of jqxPanel #26826

    parascus
    Participant

    Hi,

     

    I wonder if there is a possibility to exchange the content of an existing jqxPanel by setting just a property like “$(‘#myPanel’).html(‘A text which has a very long content and all of it replaces the current content of myPanel.’);?

    Thanks in advance

    Stephan

    Replace html of jqxPanel #26865

    Dimitar
    Participant

    Hello Stephan,

    To achieve this, please call the following methods:

    $("#jqxPanel").jqxPanel("clearcontent");
    $("#jqxPanel").jqxPanel("append", "A text which has a very long content and all of it replaces the current content of myPanel.");

    or alternatively:

    $("#jqxPanel").html("A text which has a very long content and all of it replaces the current content of myPanel.");

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Replace html of jqxPanel #26881

    parascus
    Participant

    Thanks Dimitar, this is much easier than expected.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.