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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    html table tags and jquery

    hello my friends

    i have one table which is made by html tags :
    <table width=100% border=1 style="display:none" id="headerTbl">
    <colgroup width=200 />
    <tr>
    <th width="10%">X </th>
    <th width="10%">Y </th>
    <th> ..........."here is my question" ???????? </th>
    </tr>

    I want to get the name of third column from some items that I select from first col and second col...
    first col and second col will be filled with some data which are stored in database then, name of third col should be pair of selected items from first and second column.in this way " item from 1st col - item from 2nd col"
    I think that with jquery and with onclick function can do that but I don't know how?
    how can I do this ?

    any help will be appreciated
    thanks in advance

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,108
    Thanks
    11
    Thanked 101 Times in 99 Posts
    this is not really a PHP question (though PHP may be involved in getting the data via AJAX) but the main issue is how to grab X and Y and then use AJAX to get the answer and fill in the field.

    Since you main issue is Javascript related I am moving this post there.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,916
    Thanks
    6
    Thanked 1,040 Times in 1,013 Posts
    And since it was asked specifically about jQuery and it is a JavaScript framework, I’m moving this thread to the frameworks section.


  •  

    Posting Permissions

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