1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Tutorial on changing table cell contents with jQuery

Discussion in 'jQuery' started by Nima, Aug 18, 2012.

  1. #1
    I have a table of data that shows different population numbers. I want to put a button above the table so that when clicked all the numbers are converted to % of totals (without reloading the page).
    SEMrush
    Can't seem to find a tutorial for something like that, Has anyone seen any tutorials for it?
     
    Solved! View solution.
    Nima, Aug 18, 2012 IP
    SEMrush
  2. daljit

    daljit Active Member

    Messages:
    312
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #2
    hi,
    You can do this using jquery by making an request to another page where you can process the data as you like and then response of the request is over write to main page.
     
    daljit, Sep 6, 2012 IP
  3. nufox

    nufox Peon

    Messages:
    749
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You can go to w3schools
     
    nufox, Sep 6, 2012 IP
  4. #4
    It's easy :
    #1 Compute the target cells .
    #2 Fetch the values .
    #3 Process the values .
    #4 Erase the old data and insert the new one using the target data from step one .
     
    ApocalypseXL, Sep 19, 2012 IP
    Nima likes this.