All,
Sorry if this question was asked before, but I've been searching but
no real answer to this particular topic

Please consider the following :
if I write the following into a file,
<div id="radio">
<input type="radio" value="0" name="rd1"/>Radio1
<br/>
<input type="radio" value="1" name="rd1"/>Radio2
</div>

I save the file and
use the following code :
$(document).ready(function(){
  $("//[EMAIL PROTECTED]'optionRadio']").change(function(){
                alert ("optionRadio is changed" + $(this).val());
  });
)}

this works fine.

Now if I generate the same content though an Ajax request and write
the result to a dynamic div, such as :
// Ajax request
$("//items/item", xml).each(function(){
 output+="<br><input type='radio' name='rd1' '" value='" + $('id',
this).text()+"'  />" +$('description', this).text();
});
$("#radio").empty().append(output);

no success; my Alert request never appears


How can you access to the content id created dynamically with jquery ?
Is there a command to refresh the dom document ?
thank you
Jacques

Reply via email to