Jump to content

cantrush

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About cantrush

  • Rank
    Newbie
  1. WOW, thats Fantastic!!!!! Thanx heaps Funce, you rock!
  2. Thanx for the reply. This is what I have tried using data attribute method. <option value="<?php echo $event['eventname']?>" data-eventdate="<?php echo $event['eventdate']?>" data-venuename="<?php echo $event['venuename']?>"><?php echo $event['eventname'] ?></option> and the JS <script> function eventFunction(eventname){ var selected = document.querySelector('#eventname');//get the selection element var date = selected.dataset.eventdate;//get the data attributes var venue = selected.dataset.venuenam
  3. I have 3 fields that are the same name as corresponding column in MySQL database. First field is a dynamic dropdown list called "eventname". Second field called "eventdate" is an input field that gets populated via choice made from "eventname" dropdown list / First field. Third field called "venuename" is an input field that gets populated via choice made from "eventname" dropdown list / First field. What this dynamic dropdown list does is select the eventname from database then there is an onchange function th
×
×
  • Create New...