Avatar of Bob Schneider
Bob SchneiderFlag for United States of America

asked on 

JQuery on multiple lines

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.
ASPSoftwarejQuery

Avatar of undefined
Last Comment
Bob Schneider
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Bob Schneider
Bob Schneider
Flag of United States of America image

ASKER

Part 1 worked well.  Thanks!  Are you saying that to do what I want to do with appending I create javascript variables and append?  If so, where is timedata2 assigned it's value based on whether the data  should be included or not?
ASP
ASP

Active Server Pages (ASP) is Microsoft’s first server-side engine for dynamic web pages. ASP’s support of the Component Object Model (COM) enables it to access and use compiled libraries such as DLLs. It has been superseded by ASP.NET, but will be supported by Internet Information Services (IIS) through at least 2022.

82K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo