Line break using javascript insertion...

User 244626 Photo


Registered User
770 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
User 244626 Photo


Registered User
770 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
User 244626 Photo


Registered User
770 posts

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


Senior Advisor
18,793 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.

Here's my S-Drive site with
examples of what can be accomplished in VSD.
https://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
https://progrower.coffeecup.com/shop/
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
770 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

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.