Skip to content Skip to sidebar Skip to footer

Is Is Possible To Delete Component Html Content With Jsf

hi i have HTML content like:
  • Some Error Mess

Solution 1:

In JavaScript side, you could do something like this:

document.getElementById("j_idt33:summary").innerHTML = "";

Or when you're using jQuery:

$("#j_idt33\\:summary").empty();

You only need to give the parent NamingContainer compnent which has a HTML representation with id="j_idt33" (I guess it's the <h:form>) a fixed ID so that the code is more robust. The generated ID may change with JSF impl/version and the component tree's state.

Post a Comment for "Is Is Possible To Delete Component Html Content With Jsf"