(aggregated from another question)
Jquery 1.3.2 test code, run in FF3:
<input type="hidden" value="236434" id="ixd" name='ixd' />
<script>
console.log( $('#ixd').val() );
console.log( $('#ixd') );
console.log( $("input[name='ixd']") );
console.log( $("input:hidden") );
console.log( $("input[name='ixd'][type='hidden']") );
console.log( $("input[name='ixd']").val() );
$(document).ready(function() {
console.log( $('#ixd').val() );
console.log( $('#ixd') );
console.log( $("input[name='ixd']") );
console.log( $("input:hidden") );
});
</script>
Console output:
undefined
[]
[]
[]
[]
undefined
236434
[input#ixd 236434]
[input#ixd 236434]
[input#ixd 236434]
Can anybody offer any explanation or documentation links for hidden fields' data not being accessible until after $(document).ready()? It's not something I've ever experienced and it is proving troublesome.