Here's the deal : in order to build a correct series of parameters, i'm trying to loop over all inputs included in an ajax built form; Code down here isn't finished, yet I guess you will understand it :
$("#formulaireUploadFichier").live('submit',function(e){
var fm = $(this);
var fld = [];
$('input',fm).not('[type=submit]').each(function(){
if ($(this"[type=radio]:checked"||$(this).not("[type=radio]"))
var name= $(this).attr("name");
var val= $(this).val();
fld.push(name+'='+val);
});
//construct url (note : should really be encoded!)...
var url = fm.attr('action')+'?'+fld.join('&');
//open shadowbox...
Shadowbox.open({
player:"html",
content:url,
width:800,
height:800
});
//prevent form submission...
e.preventDefault();
});
The itchy part comes line 5, where i'm trying to write a correct selector for JQuery to pass over non checked/selected radio buttons. I know i'm not that far from it, but I'm getting messed up, so any help clearing this help would be greatly appreciated.