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 Coder
    Join Date
    Feb 2012
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Ajax table problems

    Hi Everyone.

    I have a project that Im working on where a user selects a value from a dropdown list, ajax does a call to php and php build builds a table based on the parameter.

    The problem is that I added an href to each row so that the user can select one.
    In javascript how to I get that selected value, because if you pass an onclick="test(this.id)"
    it passes the original div's id not the newly created table?

  • #2
    Regular Coder
    Join Date
    Aug 2010
    Posts
    972
    Thanks
    19
    Thanked 212 Times in 210 Posts
    How do you pass an onclick ?
    Please post the code.


  •  

    Posting Permissions

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