I am using the jquery plugin, uniform so that on my form I can have pretty radio buttons, and file inputs etc.
However I have hit a problem alot of my forms a pulled in via ajax, and obvioulsy for the plugin to work it needs to know that the elements exists in the dom.
Is there away to use plugins with ajax methods?
Currently I am trying,
$(".uniform input").live().uniform();
which obviously does not work, any suggestions?
—IMPLENTED IN LOAD CALLBACK—–
$('#upload').click(function(e) {
$("#content #main").animate({"right": "-900px"}, 'slow', 'linear', function(){
$(this).load('upload.html #main div', '', function(){
$(".uploader input").uniform();
});
});
$("#main").animate({"right": "0px"}, 'slow', 'swing');
e.preventDefault();
});
In response to comments:
.loadis nothing more than a$.ajaxcall wrapped in another method. It too has a callback.Edit: i just saw your edit. If that isn’t working, make sure you are using the correct selector to get to the elements you want to apply the plugin to.