SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict say's Avatar
    Join Date
    Sep 2003
    Location
    At work
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dynamically remove item in selectlist

    Hi, after my previous thread I have this problem. I have successfully cleared an existing selectlist values and dynamically insert new data but when I view the source code, the old value is still intact!

    For example, during the first stage:

    Code:
    <select name="folderList" id="folderList" class="dirList">
    <option value="0" selected="selected">Disk (X:)</option>
    <option value="1">Implementing Secure</option>
    <option value="2">myfolder</option>
    <option value="3">another folder</option>
    <option value="4">hot enough?</option>
    After a user interact with it, JS will remove all items and add new values from database which should show up in the source as:

    Code:
    <select name="folderList" id="folderList" class="dirList">
    <option value="4">hot enough?</option>
    <option value="5">Inside hot enough</option>
    <option value="7">inside again</option>
    JS did remove and insert new list of item into the select list but when I view the source code, its still in first stage! Help

  2. #2
    SitePoint Addict say's Avatar
    Join Date
    Sep 2003
    Location
    At work
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nevermind, I realise this is the nature of js. so sad, gotta remove some features damn nature of js


Bookmarks

Posting Permissions

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