Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8235541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:50:44+00:00 2026-06-07T18:50:44+00:00

I have an array of various input boxes, that when filled, fills up the

  • 0

I have an array of various input boxes, that when filled, fills up the database with information. Then, from another file, I take the information and print it out to the screen.

What I want to do is to put a symbol in front of each line, however using something like .style br {}; doesn’t seem to work.

Reading the from MySQL, using WordPress if that matters.

EDIT:

I was asked to post how I want it to look like. I think this is pretty straight-forward, but here it is anyway:

@ Entry1
@ Entry2
@ Entry3

EDIT #2:

I would prefer it to be in CSS, if that’s not possible, then PHP. Javascript would be the last solution that I want.

I have tried the following and it didn’t work at all:

.myform.lines br {
    border-bottom: 1px dashed #000000;
    background-color: #ffffff;
    display: block;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:50:45+00:00Added an answer on June 7, 2026 at 6:50 pm

    Hi have a look at Can you target <br /> with css?

    I tried the following html page:

    <html><head><title>Test</title>
    </head><body>
    <script type="text/javascript" src="jquery-1.7.2.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function() {
        $('br').replaceWith('<br>@ ');
    });
    </script>
    hi<br>
    there<br>
    testing<p>
    again<p>
    </body></html>
    

    This results in

    hi
    @ there
    @ testing
    
    again
    

    Here is some more code that also does basically the same thing – it adds a symbol (@) at the start of each line (assuming new lines follow a br).

    <html><head><title>test2</title>
    <script type="text/javascript">
    function replaceLineBreaksWithHorizontalRulesInElement(element)
    {
        elems = element.getElementsByTagName( 'br' );
        for ( var i = 0; i < elems.length; i ++ )
        {
            br = elems.item( i );
            txt = document.createTextNode("@ ");
            br.parentNode.insertBefore(txt, br.nextSibling);
        }
    }
    </script>
    </head>
    <body onload="replaceLineBreaksWithHorizontalRulesInElement(document)">
    testing<br>
    one<br>
    two<br>
    three<br>
    four<br>
    five<p>
    six<p>
    </body></html>
    

    Note that this does work in both firefox and internet explorer giving the same results. If you remove the space however then firefox shows a space anyway, and internet explorer shows no space. I think this won’t be an issue for you though, since you want the space.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a C++ program that benchmarks various algorithms on input arrays of different
I have a byte array that I am reading in from a NetworkStream. The
I have some code that reads a file into an array of lines, and
I have an array (items) of custom class objects (catalogItem) each catalogItem has various
I need to display array of images in a single view which have various
I'm trying to add values from array to DB, have tried many variuos examples
I have an array full of patterns that I need matched. Any way to
I have tried various techniques to check the values of user input in this
I have a multidimensional array with various sites links, here is output: Array (
I have a multidimensional array with various config settings. Here's an example: $this->data =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.