Toggle visibility javascript in <netui:select> tag

Posted on 2007-08-07
Last Modified: 2008-01-09
I would like to toggle the visibility of a textbox. I am using <netui> tags.
document[getNetuiTagName("myForm")][getNetuiTagName("dropdown")].style is always returning null.

I have set the tagid for the <netui:select> tad like this

<netui:select multiple="true" tagId="dropdown" optionsDataSource="{pageFlow.mapscoOptions}" dataSource="{actionForm.mapsco}"></netui:select>
When I try with the regular html tags it works fine but not with the <netui> tags.
Please help.
Question by:Wtritepo
    LVL 11

    Expert Comment



    and place styleId = "dropdown" inside tag
    LVL 11

    Accepted Solution

    I tried this and it worked:

    <P><netui:select multiple="true" id ='drop' styleId="dropdown" tagId="dropdown" optionsDataSource="{pageFlow.mapscoOptions}" dataSource="{actionForm.mapsco}"></netui:select></P>

    Author Comment

    I will try that and let you know.
    I am using javascript at another location.
    I want to display the calendar and when the user clicks on a date it automatically enters that date in the textbox. I got this code for the calendar from the web.

    This is my code.
     <netui:textBox size="10" tagId='text1'  dataSource="{actionForm.cmpDate}" />                            
    <a href="javascript:NewCal('text1','ddmmmyyyy',true,24)">

    When I use the regular html tag
    <input type="Text" id="demo1" maxlength="25" size="25">, it works fine but when I use the tadId it does not pass the value properly and I get the javascript error.

    Please help.

    Author Comment

    The second issue I had is also resolved.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Both jQuery and Mootools offer some nice, easy to use scripts. Mootools is best known for their interactive slideshows and jQuery for their menus, but both have many other uses as well.   jQuery is basically a toolkit with many DOM (http://en.wik…
    The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now