Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Multiple Onclick conflict

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30852
    mbarandao
    Member

    Good day all:

    I’m wondering if the cancellation of one of my onclick js function in the below code is as a result of having multiple onclick function. here is the code:




    Or use Preset Periods-->>















    If such is the case, how can I address this problem?

    Currently, the first onclick function


    onclick='return ValidateSubCategory();'

    works fine. The problem is with the second


    onclick="displayCalendar(document.forms[0].theDate,'yyyy/mm/dd',this)"

    Any assistance is greatly appreciated!
    Mossa

    #71690
    cybershot
    Participant

    I don’t see any closing option tags in your script. as for the second click event, not sure

    #71692
    mbarandao
    Member

    That part of the script works fine! I have however noted your observation –thanks! I am still in need for a concrete advice on my second onclick function.

    #71660
    mbarandao
    Member

    In error! see next post

    #71668
    mbarandao
    Member

    Issue resolved!
    Here is my revised code. All is well!









    Or use Preset Periods-->>










Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.