Results 1 to 2 of 2

Thread: question about select box

Hybrid View

  1. #1
    Join Date
    Feb 2013

    question about select box

    There is one textarea and one select box on my popup page, textarea allow user to input texts there, and when user select one option from select box, the value will add to the textarea autommatically, fx. if user input "I like here." and then he choose (option1): I will go to this site. Then the content in textarea would be I like here. I will go to this site. now I want to put a hyperlink on "this site". How could I do this? I tried below codes, but it does not work.

    In popup.php:
    while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { $content = '<h1>'.$GLOBALS['LANG']->getLL('header_'.$row['category']).$row['first_name'].'</h1><p>'.nl2br($row['prayer']).'</p>
    <p></p><p><b>Send them Encouragement</b> (this will be directly emailed to them)</p>
    <input type="hidden" class="prayer-id" value="'.$row['uid'].'" />
    <textarea class="prayer-textarea"></textarea>
    <select class="prayer-select" >
    <option value=" I will go to <a href='sina.com'>this site</a>">option1</option>
    <option value="b">b</option>
    <p class="prayer-button"><input type="button" value="'.$GLOBALS['LANG']->getLL('button_send').'" /></p>

    In popup.js
    $('.prayer-select').change(function() {
    Attached Images Attached Images

  2. #2
    Join Date
    Dec 2005
    You can add the hyperlink information to the textarea, but clicking on it will accomplish nothing.

    You might try copying the .value of the textarea and putting it into a <div> section with .innerHTML = information_to_display;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center