Line break using javascript insertion...

User 244626 Photo


Registered User
730 posts
Online Now

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
There is only one corner of the universe you can be certain of improving, and that's your own self.
User 244626 Photo


Registered User
730 posts
Online Now

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
There is only one corner of the universe you can be certain of improving, and that's your own self.
User 244626 Photo


Registered User
730 posts
Online Now

Ok it looks like a <br> inserted in the right places took care of it.....not sure if that the right way.
There is only one corner of the universe you can be certain of improving, and that's your own self.
User 187934 Photo


Senior Advisor
18,463 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.
http://progrower.coffeecup.com/
Here's my CoffeeCup SCCP Shop with examples of what can be done.
http://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
730 posts
Online Now

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
There is only one corner of the universe you can be certain of improving, and that's your own self.

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.