Jump to content

ajax load question


solon

Recommended Posts

Hey guys i need to know if there is a way to load a result -response- with the "load()" function into two different id's.

 

So when i have this script

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript">
function act-deact()
{//load here *
  $('#id*').load('act-deact.php',{
    'emp_id': $('#emp_id').val(),
    'do': $('#do').val()
  });
}
</script> 

 

* instead of only ('#id') i want to load part of the response into 'id' and the other part into 'id1'

 

if you have any more questions please ask me.

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/155317-ajax-load-question/
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.