Hi!

I cant get this each function to work inside a form:

for example i have this code:

$('#formid>input').each(function(){
        if($(this).attr('id')!='') alert($(this).attr('value'); //fetch id if
not blank ang show value
});

the code inside this function does not run if the form is rendered
this way:

<form>
  <div id='tabs" >
       <ul>...</ul>
       <div id='tab1">
          <input type='text' id='fname' />
       </div>
  </div>
</form>

but if it is rendered in a simplier way like this, it works:
<form>
    <input type='text' id='fname' />
</form>

Note: im using jquery jquery-ui-1.7.2.custom.main.js library by the
way for the tabs but i dont think that messes up the whole thing
though...

i dont understand what is happening please enlighten me...

thanks in advance!

Reply via email to