We help IT Professionals succeed at work.
Get Started

JQuery on multiple lines

Bob Schneider
on
187 Views
Last Modified: 2017-04-27
I am new to jQuery and I want to know if I can write this line on multiple lines in my editor software (WebMatrix):
            $('.bluebox').html('<h4 class="h4 bg-success"><img src="' + runnerLogo + '" width="75">My Results - ' + runnerEvent + '</h4><h5>'+ runnerDate + '<br>' + runnerRace + '</h5><h4>' + runnerName + ' (Bib: ' + runnerBib + ')</h4>Gender: ' + runnerGender + '<br>Age: ' + runnerAge + '<br>Age Group: ' + runnerAgeGroup + '<br>Location: ' + runnerLocation + '<br><br>Time Data<br>Chip Time: ' + runnerChip + '<br>Gun Time: ' + runnerGun + '<br>Start Delay: ' + runnerStart + '<br><br>Place Data<br>Overall Place: ' + runnerPlace + '<br>Gender Place: ' + runnerGenderPlace + '<br>Age Group Place: ' + runnerAgeGrpPlace + '<br>Age Graded Place: ' + runnerAgeGradedPlace)

Open in new window


Part Two of my question:  I work in classic asp and I want to add additional values if a person meets certain criteria.  For instance, if this is a multi-sport event I want to be able to include the times of each portion as well as their transition times.  I have the data...I just don't know how to modify this if, and only if, it is relevant to the results display.

Thank you.
Comment
Watch Question
IT Expert
CERTIFIED EXPERT
Top Expert 2009
Commented:
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE