SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Replicating 'disable' for menu options in IE

    I have a menu with a lot of items that open pop-up windows when clicked on. The first item on the menu is purely intended as descriptive and default selection on the menu and is given the 'disabled' parameter- which makes the option inactive(greyed out) in Firefox; but has no effect with IE which goes ahead to open a blank pop-up window.
    Please who knows how I can make a menu option to be 'disabled' in IE.

  2. #2
    SitePoint Enthusiast
    Join Date
    Feb 2004
    Location
    Third Stone From The Sun
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use onchange event handler for the select.

    Code:
    function selectChangeHandler( e ) {
      var target = getTarget( e );
      if( target.disabled ) return false;
    };
    You can use CSS to change the text-color.
    My outdated site is down for a while now.

  3. #3
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for this. + Sitepoint rocks


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
  •