Making select menu Listbox readonly in javascript?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tahirakramch
    New Member
    • Sep 2006
    • 1

    Making select menu Listbox readonly in javascript?

    Dear Experts

    I have a select menu lets say

    [HTML]
    <select id="textAds" name="textAds" multiple="true" >
    <option value="3">Zinga r Burger</option>
    <option value="5">Pakis tani Biryani</option>
    <option value="54">Hot Chick Pizza</option>
    </select>
    [/HTML]

    and I want if user has made his selections for once, he cant do it again. Means the select menue becomes readonly (no disable, bcoz disable fields cant retrived on server).

    Do you have any idea to to this, I will be very thakful to you.

    regards
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    The select element doesn't have a readonly attribute. One possible workaround is to disable and then enable just before submitting.

    Comment

    Working...