Line break using javascript insertion...

User 244626 Photo


Registered User
811 posts

I have this code...


return "<strong>"+zone.attr("data-title")+"</strong>"+" "+zone.attr("data-nbmembre")+"Users of Coffeecup Software"


How would I insert a line break to occur right after the Bold data-title so it is displayed on one line and the rest follows ?

Thanks
Bootstrap 5 CSS Grid.
User 244626 Photo


Registered User
811 posts

This is the link to the popup which occurs on mouseover. (The script is mapifyset.js in the js folder)

I would like the popup to display each field on one line including the last text display on line three.

Is this even possible ?:rolleyes:

http://gluexp.coffeecup.com/mapify/index.html
Bootstrap 5 CSS Grid.
User 244626 Photo


Registered User
811 posts

Ok it looks like a <br> inserted in the right places took care of it.....not sure if that the right way.
Bootstrap 5 CSS Grid.
User 187934 Photo


Senior Advisor
20,181 posts

Does "\n" work? There's no problem using straight html.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 244626 Photo


Registered User
811 posts

Eric Rohloff wrote:
Does "\n" work? There's no problem using straight html.


Yes, I did try that but did not seem to work. Good to know about the html tags though...

Thanks Eric
Bootstrap 5 CSS Grid.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.