Replace the JQuery text is all the text in the webapp manufacture

Hello, I hope someone could give me a hand!

On this home page: www.largemouthfrog.net I am running a Web application called "Testimonials" which produces a string of words/phrases on the basis of the selected check box. "They come in the page as: < li >... <div class= 'testimony-commentaires1' >awesome! Excellent! really good < /div >... < /li >

For each < li > there is a separate set of words or phrases separated by a comma.

I want to remove the comma and replace < br >

I have the following JQuery (see below) which replaces the comma with < br > BUT it must be the first instance of < li > of

"<div class= 'testimony-commentaires1" > and it repeats again and again for all other < li > ' s. " In other words:
"great!, great!, really good" is repeated several times.

I tried to put the JQuery inside available to the Web application list, but does the same thing.

< script >

{$(document) .ready (function ()}

var str = $(".testimonial-comments1").html () replace (/, / g, '< br / >');

$(".testimonial-comments1").html (str);

});;

< /script >

Any help would be appreciated!

Hi Wayne,

Your code is a bit too simplistic and it fails because it is not really

loop through all elements of web application and instead, it captures the content of the

first one defines the rest of them with this content. I have created some

code that will help you get started. Here it is:

$(".testimonial-comments1").each (function (index) {var tags_text =

$(this) .text (); var split_text = tags_text.split(',');

Console.log (split_text); });

You can see here http://mgtrain.worldsecuresystems.com/tags

My class is simply called "label" and my layout of the list looks like this:

{tag_name}

{tag_tags}

Basically, this code creates an array of strings for each iteration.
All you have to do now is to browse table and Add.
"to each.

point, join the elements in a string, then set $(this) .text () of this new

value.

That said, I recommend you to build a form UL these options in this

case. It's a bit more semantic to me.

I can actually make this my first blog at www.twoblokeswithapostie.com

See you soon,.

Mario

Tags: Business Catalyst

Similar Questions

  • Replace the text box with Image through breakpoints

    Hello

    I'm looking to replace the text boxes and icons with images and want to know if I can do this on several break points at the same time without having to go and manually change each breakpoint.

    My site is here: Movement of Boulder

    In the Services section of the wider breakpoint, you can see the images that I want, but if you minimize the browser window, you will see the images and the text that he was supposed to replace. Is it possible to replace all the text boxes with the images you want?

    Hello griffinb,

    If you delete a breakpoint text areas, they will be removed from all.

    After you have placed your image just right-click on it and select the option ' copy the style and position > to other breakpoints.

    Let me know if you have any problems getting there.

    Kind regards

    Ankush

  • replace the text in html

    We have a column of type CLOB data table. This CLOB column store html text.

    the example data:

    < p >

    Do the same for the footer:

    < /p >

    < p >

    < br / >

    < table border = "0" cellpadding = "0" cellspacing = "0" style = "" width: 672px "width ="840">"

    < tbody >

    < b >

    < td nowrap = "nowrap" style = "height: 31px;" Width: 152px ">"

    < p >

    [Number of lines in the body]; 1 < /p >

    < table >

    < /tr >

    < / tbody >

    < /table >

    < /p >

    How can we replace the string 'body' with 'dummy' in this example without replacing the tag "tbody"?

    We want to apply a find and replace function of html data, without touching the html tags.

    How can achieve us on db oracle 11.2?

    TX

    For complex examples, you can use the parser HTML for example (JSOUP) available on this site: jsoup Java HTML Parser, with the best of the DOM, CSS and jquery

    You can load the jar with loadjava file into database and do a stored procedure for analyzing and replace java html code...

    It's simple and powerful library...

    Defining the content of the text of the items: jsoup Java HTML parser

    Selector syntax is used to find items: jsoup Java HTML parser

    You simply load html in the parser... and then you iterate tags and search of the string, you need to replace...

    Replace this string and save html updated the db back or where you want...

  • Replace the text

    Hi all

    I need your help regarding replacing the text with other text. I am trying to replace the text '-' with '-'. But I'm not able to get the correct result.

    I'm going to string as value
      '\\Computername\Path\comp_name\\domain\\location' 
    I want to replace the text '-' with '-' only for 2nd and 3rd appearance.

    Replace
     \\domain\\ 
    with
     \domain\ 
    I tried with query below...
    SELECT REGEXP_REPLACE('\\Computername\Path\comp_name\\domain\\location' ,
           '(\\){2,}', '\')
           AS Expression
      FROM dual;
    I get the below result to top query.
      \Computername\Path\comp_name\domain\location 
    But I want the result as below...
     \\Computername\Path\comp_name\domain\location 
    I use Oracke vesion 11g.

    Please help me on this.

    Thanks a lot for your help.

    Hello

    sunitha2010 wrote:
    Hi all

    I need your help regarding replacing the text with other text. I am trying to replace the text '-' with '-'. But I'm not able to get the correct result.

    I'm going to string as value

      '\\Computername\Path\comp_name\\domain\\location' 
    

    I want to replace the text '-' with '-' only for 2nd and 3rd appearance.

    I guess that the 1st appearance will not always be at the beginning of the string.

    Replace

     \\domain\\ 
    

    with

     \domain\ 
    

    I tried with query below...

    > SELECT REGEXP_REPLACE ('\\Computername\Path\comp_name\\domain\\location',

    '(\\){2,}', '\')
    AS Expression
    DOUBLE;

    REGEXP_REPLACE has an optional 3rd argument, which allows you to say what position in the string to begin the search, you can do something like this:

    SELECT  REGEXP_REPLACE ( str
                            , '\\\\'    -- 2 backslashes, escaped.  See note below
                     , '\'
                     , 2 + INSTR ( str
                                       , '\\'
                           )
                     )     AS expression
    FROM    table_x
    ;
    

    In the 2nd argument of REGEXP_REPLACE '-' has a special meaning. To say you want a literal character, you have to escape , by putting a '-' immdiately before the special character, which in this case is be '-' also.

  • Expression to replace the image according to the text of the layer.

    Hello, I wanted to ask you is it possible to replace the image in the function composition text text layer. That is the text layer contains code # 34 and expression indicates what kind of image should be placed according to conditions in expression of image.

    Sincerely, Deimantas

    Hello

    Expressions can not add/replace images.

    All images must be here somewhere, in the form of layers in the model or in a precomp, but not only as items in the project Panel.

    Then you can play with the opacity of these layers, with an expression of opacity to each of them:

    textLayer = (pickwhip the text layer that transports information);

    If (textLayer.sourceText == thisLayer.name) 100

    0 otherwise;

    The condition can be something different, for example "if (textLayer.sourceText is thisLayer.index"), etc, etc.

    Not clear what should be this condition in your case.

    Xavier.

  • Is there a good way to replace the text "See basket" by another text?

    I have a big problem, I'm still stuck with that, I hope someone can help me.

    I need to change the text "See basket" in the cart summary module. I learned that I can do this with javascript: http://forums.adobe.com/message/4409239#4409239

    But there are problems:

    When I use this javascript:

    " < script src =" https://AJAX.googleapis.com/AJAX/libs/jQuery/1.7.2/jQuery.min.js "type =" text/javascript"> < / script > "

    < script >

    $(function () {})
    $(".cartSummaryLink").text ("Afrekenen");
    });
    $(function () {})
    $(".cartLink").text ("Winkelwagen is alone");
    });

    < /script >

    The 'see the basket' is replaced by 'afrekenen.

    BUT:

    1. When I add another product to the presentation of big product the text "see basket" is back...
    2. When I delete a product in the basket the text "See basket" is also back
    3. When I refres page the text "See basket" is replaced with "afrekenen.


    So I thought to use javascript to refresh the page when a product is added:

    < script type = "text/javascript" >

    function AddProductExtras() {}
    document. Location.Reload (true);
    }

    < /script >

    This works, but you can see that the text changes from 'afrekenen' to 'view basket' and "afrekenen" as the page is again a regeneration which is not a very good solution.  So here are my questions:

    1. Is there a better work around?
    2. If not, is it possible that when a product is removed from the basket page can also be updated?


    Thank you

    Frank

    Hi Frank,.

    I suggest that you use CSS and replace the basket with an image. The following should help:

    {a.cartSummaryLink}

    background: url(your-image.png) 0 0 no-repeat;

    Width: 120px;

    height: 27px;

    vertical-align: middle;

    display: - moz - inline-block; / * for Firefox * /.

    display: - moz - inline-box; / * for Firefox * /.

    Display: inline-block;

    text-indent:-9999px; / * mask the text * /.

    }

    See you soon,.

    -mario

  • Add line replaces the text

    Hello

    I was creating a form and I have 2 lines that the user can add a new line. the first works fine however the second simply replaces the text below.

    Am I missing something obvious that would prevent this?

    I would have joined the form but I do not see how to add a pdf file

    G

    Hello

    Here is the link to the form that I have worked on https://acrobat.com/#d=KNwNaVZSykxgNoSkN * 2XIw

    But the problem is: I've changed the Page - 2 set to slur all fields have say arranged. Yo the need to align those.

    What I've done: changed the Page - 2 set to flowed.

    Wrapped last two subforms in a single form.

    Thank you.

    Sidonie.

  • Replace the contents of the layer text by current image name

    Hi all new (I ve posted another topic about 1 hour ago )

    I have another question:

    Imagine opening an image called Gustavo.jpg (my name)

    Now, you manually create a layer of text placed at the right place and you type 'your name here '.

    This layer is selected in the layers panel.

    Now the question:

    Is there a simple way to make a script that replaces the selected type layer that s written 'your name here' by the name of the current image (Gustavo)?

    Thank you very much for the help.

    Gustavo.

    This will remove the extension...

    function main() {
    if (!app.documents.length ) return;
    var doc = app.activeDocument;
    var fnameLayer = doc.layers.getByName("Filename Layer");
    fnameLayer.textItem.contents = doc.name.replace(/\.[^\.]+$/, '');
    };
    main();
    
  • Replace the text values

    Hello.

    I have problem with replacement of values in text strings and I can't find a solution.

    I have two or three channels filled with only 2 values: OK and NOK. How can I replace these values with for example 1 for OK and 0 for NOK?

    This replacement is necessary for drawing a chart. I can't draw the chart because the tiara do not accept the values of text like a ladder with the current values.

    Thanks in advance :-)

    Hello Domin,

    replaces a substring in a text with another text can be done with VBS 'Replace' function

    The execution of a function on an entire channel can be made using ChnCalculate.

    Combine the two and you get:

    ("ChnCalculate ("ch ()"" statistics text"" "") = Replace (ch ("' statistics text" "" '), '' value' ', "" LLL"") ")

    It is a channel in the DIAdem example data set. The above command executes the command "Replace" for each value of the text string "text of statistics". He replaces each occurrence of 'value' by 'LLL '.

    Hope this helps

    Andreas

  • Where is the tool replace the text since the update yesterday?

    I opened Adobe Reader DC today and thought that the toolbar was different. The text replacement tool has disappeared (the one with the crossed T and bubble comment next to it)!

    I think that Reader downloaded an update yesterday.

    If I want to replace the text (instead of simply delete or insert, I can always do it manually (by highlighting the text I want to change by typing my changes).) However, the changes appear in red and blue, which he has not done before (text was blue just before).

    I checked the tools available and there is no option for text replacement tool more.

    In addition, the highlight color has changed - it is now orange instead of yellow. Is it because of the update too? >

    This happen? I use a lot the text replacement tool. Please can have back?

    Hi janeh87695323,

    Please select the text and right-click on it.

    Then select the "Add a note to replace the text" option in the drop-down list.

    Kind regards

    Meenakshi

  • Replace the selected text with other content TextFrame

    Hello

    I am changing a text selected in something new, involving the movement of text and the paragraph style using a jsx script. At the present time, everything works beautifully:

    • I entered the select text
    • I have create a new temporary TextFrame
    • I build my new paragraphs and apply styles to them in the new TextFrame

    What I was not able to reach still is to replace the original selected text by temporary TextFrame content.

    Any help would be more than welcome

    A part of my script:

    myText = app.selection[0].contents;

     

    ... do some stuff


    var myDocument = app.documents.item(0);

    var myPage = myDocument.pages.item(0);

    var myTextFrame = myPage.textFrames.add();


    myTextFrame.geometricBounds = [0, -70, 150, 70];

    myTextFrame.contents = "Paragraph1\rParagraph2...";


    myTextFrame.paragraphs[0].appliedParagraphStyle = pStyleGroup.paragraphStyles.itemByName('Style1');

    myTextFrame.paragraphs[1].appliedParagraphStyle = pStyleGroup.paragraphStyles.itemByName('Style2');

    And now, in myTextFrame, I have my new paragraph formatted, and I would like to replace the original selected text with the contents of my TextFrame (keeping the paragraph styles).

    Hello

    Keep the logic of the code and edit utilities:

    var
        mSourceIdx = app.selection[0].index,
        mStory = app.selection[0].parentStory,
        mReplaceStuff = {
            elements: [
                ["Paragraph_1\r",  "Style_1"],
                ["Paragraph_2\r",  "Style_2"],
                ["Paragraph_X\r",  "Style_X"]
                ]},
        mTarget, cElement, cText, cParaStyle;
    
    while (cElement = mReplaceStuff.elements.pop()) {
        cText = cElement[0];
        cParaStyle = app.activeDocument.paragraphStyles.item(cElement[1]);    // modify if styleGroups present in a structure
      mTarget = mStory.insertionPoints.item(mSourceIdx);
        mTarget.contents = cText;
        mTarget.paragraphs[0].appliedParagraphStyle = cParaStyle;
         }
    
    app.selection[0].contents = "";
    

    MReplaceStuff allows to prepare stuff to replace

    Jarek

  • Replace the Image and add text - new edition of content of the javascript tools commands

    With the new content tools Adobe XI of edition, can someone please advise if there is javascript for the following commands:

    • Replace the Image
    • Add text

    Replace the Image

    I have a pdf document with an image that is manually replaced by content (it is a logo) of the editing tools.

    Add text

    The same pdf document has text added manually by the content of modification of the tools as well (it's the same text each time).

    Can someone advise please basic commands javascript I can use to help me get started, because the process described above is very tedious when done by hand and repeated several times a day?

    Script to add text via content editing tool method is the goal, I try to avoid adding a text field, the pdf will be flattened at the end of the process in this way.

    Advice and assistance will be most appreciated.

    Thank you.


    You can use a button to display an image and import an image as an icon of the button file programmatically. You will use the field.buttonImportIcon for this JavaScript method.

  • In editing in the browser can create you new text boxes and images or can you only replace pre-existing text/images?

    Editing in the browser can you create new areas of text and images in your muse site? Or can you only replace pre-existing text/images?

    You can only replace the existing content, do not change the structure of the page. See the respective help sections.

    Mylenium

  • Replace the text with formatting

    I need to replace every occurrence of the word with impatience! with forward! in italics. I have not found a way to do... Any ideas?

    Thank you

    JackL

    Captivate 7 - Windows 7

    I have the answer for those who are interested. Captivate (7) lets you export captions and subtitles to Word. Once in Word, simply replace the text sought by the text in the layout you want, save, and then re-import the Captivate projects. Works perfectly, with a caveat. If you use bullets (standard or numbers), the hyphen and the bullet formatting to these legends may require some manual adjustments after importation.

    In any case, this process has saved me a lot, a lot, a lot of hours!

    Jack Loganbill

  • Replace the text in the form field with javascript

    Hello

    I am trying to replace an existing text in a form field, if a user enters a number.  For example, during the validation of required fields, Adobe does not accept "0" as a valid entry.  My users regularly enter '0', and it must be valid.  I noticed that if you enter "0.001 ', he admits that, but still the poster ' 0.00' (I'm only show 2 decimal places, so it's OK)."

    My problem is that I can not find the syntax to have the ' 0.00' replaced by a "0.001' by the system."

    I would be very happy for any input!

    Thank you!

    Try the following script:

    var requiredFields = [], error = "";
    
    for (var i = 0; i < numFields; i++) {
    
        var fName = getNthFieldName(i);
        var f = getField(fName);
    
        if (f.type !== "button" && f.required && !f.valueAsString) {
            requiredFields.push(fName);
            error += fName + "\r";
        }
    }
    
    if (error) {
        app.alert("Please complete the following fields: \r\r" + error, 3);
        getField(requiredFields[0]).setFocus();
    } else {
        print();
    }
    

    Edit: correction of stuff

Maybe you are looking for

  • Travel in America of the North-help purchase iPhone 7 Australian

    Hello I happens in Vancouver in a few days and roamed in Banff, Jasper and probably Calgary, then probably South in parts of the North of the United States, possibly including Montana and Oregon before returning to Vancouver. In addition to beautiful

  • Drop-down menu of Firefox address bar Sporatically stops working

    I had this problem for about a year and some parts of the year are worse than others, and now, according to the latest update of Firefox, this problem is at its absolute worst. The drop-down menu in the address bar of Firefox sometimes stops displayi

  • Intensity of the signal by country

    Does anyone know the limits of signal strength on a per country basis? I know that the MONKEY is supposed to have 32.5dBm, but in what country can you get this limit?

  • Included applications are not installed

    I bought a used 12 '' MacBook and iWorks apps are supposed to be included, but they are not installed and they cost money in the app store. Is it possible to get them for free, or do I have to pay for them? Is it because the previous owner had attach

  • Cannot access shared files whne connected to the server

    Original title: dfs namespace access We have customers from windows 7 on windows 2008r2 domain. We have a couple of file hosting a dfs servers space names with file shares. This server hosts a common \\namespace\fileshare that is still available howe