Cuando intento usar $("#div_id")
en $(document).ready
, devuelve NULL, pero cuando uso jQuery("#div_id")
, ¡devuelve el objeto real!
¿Por qué está sucediendo eso?
ACTUALIZACIÓN: He intentado el método NoConflict sin obtener ninguna pista.
jQuery.noConflict()
function (a,b){return new c.fn.init(a,b)}
$.noConflict();
TypeError: Object function()
{
return document.getElementById.apply(document, arguments)
} has no method 'noConflict'
ACTUALIZACIÓN 2:
$(document).ready(function() {
debugger;
});
<input type="text" id="test" name="test" value="123" />
Cuando ejecuto el código siguiente en la consola me dieron estos resultados:
$("#test").val()
TypeError: Cannot call method 'val' of null
jQuery("#test").val()
"123"
Gracias
Suena como Firebug es anulación '' $ a document.getElementById – Raynos
I cargar la página sin habilitar Firebug, a veces indica un error que indica que no se encontró el elemento.Pero otras veces funciona bien – wael34218