Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    onstateChange event help

    Code:
    <select name="country">  
    <option>india</option>  
    <option>usa</option>  
    <option>pak</option>  
    <option>england</option>  
    <option>aus</option>  
    <option>newzeland</option> 
     <option>rsa</option>  
    <option>srilanka</option>  
    <option>west indies</option>  
    </select>  
    </div>  
    </label>
    </td>  
    </tr>  
    <tr>  
    <td>
    <div align="right" class="style4">City/Area</div></td>  <td>:</td>  
    <td><label>  <div align="left">  <label>  <select name="area" size="1" multiple="multiple" id="area">  </select>  
    </label>
    i have a list of countries in one select box.when i selecting a perticular country,depending on country, how to change a cities/area list box automatically.suppose when i selected a usa then i want to show only usa cities.like england....etc..
    Last edited by barnes; 05-01-2007 at 09:51 AM.

  • #2
    New Coder
    Join Date
    Apr 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    its very simple... by using xml file
    check the code at below link and try to understand it
    dropdown list from xml

    If can't understand tht give a reply...
    i will give a sample code which u needed


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •