views:

27

answers:

1

Hello

I have a jquery dialog with an input text and some checkboxes.

The problem is that i cant set focus or enter text in the inputs,

I am using jqueryui 1.7.3 and 1.3.2 core, firefox 3.6.10?

On IE the problem doesn't exist, so is this a bug of jquery or firefox?

Any solutions? thanks

code:

    $('#corr_types').dialog({
    width:160,
    title: 'Set correction type',
    open:function()
    {
        //input temporani della form
        $(this).find("input:radio").attr('checked','');
        $(this).find("input:radio[value="+type+"]").attr('checked','checked');

        $(this).find("input:checkbox").attr('checked',mpc);
        $(this).find("input:text").val(catno).focus();
    },
    close: function() { 
        $(this).dialog( "destroy" );
    }
});


    <div id="corr_types"  class="corrtypes" style="display:none;" >
<input type=checkbox  >MPC<br /> Catno. <input type="text" size=10 
</div>
A: 

First,

<input type=checkbox  >MPC<br /> Catno. <input type="text" size=10 

Should be

<input type="checkbox" name="mpc" />MPC<br /> Catno. <input type="text" size="10"/> 
Chouchenos
yes i know I write and copy here just for indicating the code
albanx