Hide DropDownList at Creation

2 posts, 0 answers
  1. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 04 Nov 2011 Link to this post


    I have a DropdownList that I want to create based on JSON pre-loaded with jQuery. This works OK but I need to hide it immediatelly after its creation. The DropdownList will be hosted by a DIV not an input.

    The problem is when I call $("#divName").Hide() immediatelly after the creation of the DropDownList, it is not hidden. If later I try to hide it it works.

    The reason for this is that I have radiobutton group and two DropDownLists and I would like to show only one of them depending on the radio button checked.

    Thanks in advance
  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 07 Nov 2011 Link to this post

    Hello Marcus,

    Check this jsFiddle demo. The DropDownList is hidden after its creation. 

    Best regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top