Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9142425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:46:50+00:00 2026-06-17T09:46:50+00:00

CSS: <style> body{font-family: arial; } .nopad{padding-bottom:5px;} .exBt:before {content: [+];float:left;padding-right:3px;} .exBt_nobtn {height:12px;width:12px;float:left;padding-left:50px;} </style> JQuery: <script>

  • 0

CSS:

 <style>
    body{font-family: arial; }
    .nopad{padding-bottom:5px;}
    .exBt:before {content: "[+]";float:left;padding-right:3px;}
    .exBt_nobtn {height:12px;width:12px;float:left;padding-left:50px;}
    </style>

JQuery:

 <script>
jQuery(document).ready(function(){  
jQuery(".nopad").each(function(){
if (jQuery(this).find('div').hasClass('.exBt'))
    {
    jQuery(this).find(".taskName").css('font-weight','bold'); 
    jQuery(this).find(".taskName").css('font-size','16px');
    }   
});//end each
 });//end main
 </script>

HTML:

    <div class="nopad">
    <div  class="exBt"></div>
    <div class="taskName">This is a title</div>
    </div>

    <div class="nopad">
    <div class="exBt_nobtn"></div>
    <div class="taskName">this is subcontent</div>
    </div>

   <div class="nopad">
   <div class="exBt_nobtn"></div>
       <div class="taskName">this is subcontent</div>
        </div>

This code works fine. I just want it to do work with this:

  <div class="nopad${addDivClass}">
            <c:choose>//tests if heading content has child content
              <c:when test="${item.nestHead}"> 
              //if it has content use one class(add a-+ icon)
                     <div class="extBt" id="extBt-${item.itemId}"></div>
              </c:when>
              <c:otherwise>
          //if there is no child content loaded by ajax just indent with another class
                     <div class="extBt_nobtn" id="extBt-${item.itemId}"></div>
              </c:otherwise>
             </c:choose>

I’m very new to JSTL Core but I think doing it that way would be cleaner -I just don’t know how

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:46:51+00:00Added an answer on June 17, 2026 at 9:46 am
    <c:choose>
                  <c:when test="${item.nestHead}"> //test for content
                         <div class="superset-head" style="font-weight:bold">${item.name}</div>//bold
                  </c:when>
                  <c:otherwise>
                         <div class="superset-head">${item.name}</div>//not bold
    
    
                  </c:otherwise>
           </c:choose>
    

    That would be what I was trying to accomplish. I am trying to learn just the basic syntax and get it right.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

typically the code is something like: <html> <head> <style type=text/css> body { font-size:12pt; font-family:
<style type=text/css> fieldset { border: solid 1px orange } .label { font-family: Arial; font-size:
My code: body { font-family:Verdana,Arial,Helvetica,sans-serif; } .myfont { font-family:Verdana,Arial,Helvetica,sans-serif; } <body> Hello <select> <option>
i have this code: $('.access a').toggle(function() { $('link').attr('href', 'styles/accessstyles.css'); $('body').css('font-size', '16px'); }, function() {
I have this in my CSS file: body {style.css (line 3) background:#CDF8FF url(images/final_bg.jpg) no-repeat
html <html> <head> <style type="text/css"> body { background-color: transparent; color: white; } </style> </head>
**html** <html> <head> <link rel=stylesheet href=style.css ... /> </head> <body> <div id=wrapper> <div id=header>
I have some CSS: fieldset { border-radius: 5px; border: 3px solid blue; padding: 5px;
<!DOCTYPE html> <html> <head> <script type=text/javascript src=./jquery.js></script> <style type=text/css> .spades { color: blue; font-family:
If I've overridden a CSS root style to: body .dijitTitlePane .dijitTitlePaneTextNode { color: #FFFFFF;

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.