I have some input and i want to fill them with a value i got from a text.
Here’s my code :
$( "#dialog-test fieldset" ).hide();
$( "#dialog-test fieldset:eq("+j+")" ).show();
$(this).children(".testValue").each(function(k,item) {
$( "#dialog-test fielset:visible input").eq(k).val($(this).text());
});
$( "#dialog-test" ).dialog( "open" );
This dosn’t work cause #dialog-test is hidden and so :visible dont return anything.
This works , but i could to open my dialog only when im done changing all values:
$( "#dialog-test fieldset" ).hide();
$( "#dialog-test fieldset:eq("+j+")" ).show();
$( ".ui-dialog:eq(2) .ui-button-text:first" ).text("Modifier le test");
$( "#dialog-test" ).dialog( "open" );
$(this).children(".testValue").each(function(k,item) {
$( "#dialog-test fieldset:visible input").eq(k).val($(this).text());
});
I would use the first solution but cant manage to find how process so that this :visible works.
Thank a lot for your help,
Tim
Here: