Jump to content

TWO DIV IN ONE ACTION


chanchelkumar

Recommended Posts

http://snippets.tzfiles.com/snippet.php?id=27

 

Change this:

document.getElementById('AJAX').innerHTML = ajaxRequest.responseText;

 

To something like this (You can only use 2 classes of the same name though):

document.getElementByClass('AJAX').innerHTML = ajaxRequest.responseText;

Link to comment
https://forums.phpfreaks.com/topic/44736-two-div-in-one-action/#findComment-217796
Share on other sites

i have a table: tbcities

there are 3 fields/columns: (1) id, (2) city, and (3) zip

 

if i search for id (one button click/action), i want the corresponding city and zip code loaded into separate divs.

 

<div id="city">i want the city here</div>

<div id="zip">i want the zip code here</div>

 

how do i do that? pls help us.

 

 

Link to comment
https://forums.phpfreaks.com/topic/44736-two-div-in-one-action/#findComment-223061
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.