• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change attribute of UL element

 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I have a <UL> element in my JTextPane. when the user presses a button I add
<ul class="myclass"><li></li></ul>

This works fine. Now i want to edit the <ul class="myclass"> when the user presses another button to <ul class="newclass">. How can I do this?

// MAthias
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!