How do you clear a select list in javascript?

Hi,
I've tried clearing a select list (after it has been populated) by
html_GetElement('P_CAMPUS').value='';
html_GetElement('P_CAMPUS').value=null;
these clear the visible field but if you click it all the options are still there.
I tried:
html_GetElement('P_CAMPUS')=null'';
It is probably a real easy thing... but I don't see it...\
Thanks, BillC

To delete all the options in the select/dropdown list, you go
html_GetElement('P91_SELECT').options.length=0;

Similar Messages

  • How do you clear the reading list in Safari

    How do you clear the reading list in safari ?

    Safari 6 / Mountain Lion
    Section: Remove a page from the Reading List,
    http://support.apple.com/kb/PH11942?viewlocale=en_US
    Best.

  • How do you clear the download list without deleting the files?

    I'm using mobile firefox on a samsung galaxy nexus. I was looking for a way to clear my download history without deleting the files from my phone (like clearing downloads on the pc)
    is this possible? how would I do it?
    if not is there an app that can do it?

    [http://www.galaxynexusforum.com/forum/galaxy-nexus-help/2935-how-erase-downloads.html http://www.galaxynexusforum.com/forum/galaxy-nexus-help/2935-how-erase-downloads.html]
    i hope you can find something of use here!

  • How do you clear system and application logs in a server?

    Hello all,
    How do you clear system and application logs in a server?
    thanks,
    mike

    go to start button,all programs,assosories, System tools T event viewer. now select application & rt click & clear & do not save.similarly do for sytem too.

  • How do you clear google search history

    How do you clear google search history. I tried the clear history in settings and all the old searches are still there

    In Safari, use the open book symbol to go to bookmarks. At the top of the list is "History", tap history and then tap the clear button on the bottom left of the screen.  That clears the search history as well.

  • How do I clear updated apps listed by date in the Updates section of the App Store app?

    How do I clear updated apps listed by date in the Updates section of the App Store app?

    Hi rowiny,
    depending on what exactly you mean with "clear", it is a bug. See this thread: App Store Updates Do Not Clear
    If you update your App's via iTunes, and not "over the air", the badge count on the AppStore-app icon is wrong, and the list shows "available updates" that you can open in the new version. The listing under "Updated #date#" lists only updates that were done OTA in the last month.

  • How to get Saved Selection list in javascript?

    Hello!
    Recently I met a little problem about save selection. I want to get saved selection list so that I can used in javascript. Now I have no ideals. Hope you tell me some useful information about how to get Saved Selection list in javascript!

    Mark is right, it's not possible.
    But do you know you can assign selection to a variable, and get back to it simply like this?
    var sel = app.selection;
    app.selection = null;
    /* your codes here
    app.selection = sel;

  • How do you clear the cache in Lion?

    How do you clear the cache in Lion?

    Safari 6
    Empty Caches
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click Develop and select "Empty Caches" from the dropdown.

  • How do you backup IPhone contact list to Computer (XP) PC Computer?

    How do you backup IPhone Contact List to PC Computer(XP) ?

    The easiest way that I have found is to open Outlook, go back to Itunes & select your phone.
    Choose the 'Info' tab at the top of the screen & tick the box marked 'Sync contacts with' & choose Outlook from the drop down box.
    Image attached may explain better.
    Regards,

  • How do you clear space on hard drive

    How do you clear space on your hard drive on a mac book pro?

    Hope this helps.
    1. Empty Trash.
        http://support.apple.com/kb/PH10677
    2. Delete "Recovered Messages", if any.
        Hold the option key down and click "Go" menu in the Finder menu bar.
        Select "Library" from the dropdown.
        Library > Mail > V2 > Mailboxes
        Delete "Recovered Messages", if any.
        Empty Trash. Restart.
    3. Repair Disk
        Steps 1 through 7
        http://support.apple.com/kb/PH5836
    4. For more on this and very helpful tips:
        http://pondini.org/OSX/DiskSpace.html
        http://pondini.org/OSX/LionStorage.html

  • How do you clear out a tree control?

    I am editing items in a tree control, when the editing is complete, I re-build the tree to represent what I have after the edit.  My process of deleting the items one-by-one has worked fine until the tree scrolled off the top, then, when I select the top-left item and delete everything under it, I miss the ones that have scrolled off the top.
    What's the method/property I should use to clean out a tree in one operation?  (before rebuilding)
       ...Dan

      Tray Drool!
    Originally I had, "How do you clear out a tree?".  That's why I added "control".

  • How do you print the reminder list

    How do you print the reminder list?

    With Reminders open and your list you'd like to print select, press command "A". After that copy them (command "C"). After that, open your Text Edit app. Once that is open, paste your copy in there (command "V"). From here you can print like you normally do.

  • How do you clear updated apps from the App Store

    How can you clear updated apps from the list in App Store?

    What do you mean by "clear"?
    Have a look here: iOS 8: App Store Updates Do Not Clear
    If it is the badge count that does not fit, it might be that iTunes is the cause (12.0.1.26).

  • How do you clear ALL the music from an iPhone so you can reload a fresh copy?

    How do you clear the iPhone of ALL music so you can load a fresh copy from iTunes?

    Sync it with iTunes.
    There's no need to "clear" it first.
    If it is not selected to sync, it will remove it from the iPhone.

  • How do you alphabetise a bulleted list

    How do you alphabetise a bulletted list?

    Donnie Ashworth wrote:
    You have to first convert the list to a table (Format / Table / Convert List to Table)
    Then select a cell in the table, open the table inspector, click on "Table", then go to the Edit Rows & Columns pop-up, and choose Sort Ascending or Descending, whichever you want.
    If you want to then alter the table borders so it doesn't look like a table, you can do that also.
    OR
    You could then convert the Table to Text (Format > Table > Convert Table to Text)
    Regards,
    Barry

Maybe you are looking for