css - Plupload: get id of file input -
i have multiple instances of plupload included @ 1 page of application, divided in 3 categories , can added manually adding new table row. need test uploading dynamically codeception , it's difficult attach file specific plupload file input, because don't know generated id , seems not possible add css class.
i'm trying id of current plupload file input doing:
init: { init: function(up) { console.log(up.id); // o_1aa1e71ku20lole1v7s1veqetje0 console.log(up.runtime); // html } }
the problem up.id not equal id of file input:
<input id="html5_1aa1e71krlg119o9ks61uvl17ledv" type="file" style="font-size: 999px; opacity: 0; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" accept="image/jpeg,image/png,image/gif,application/pdf">
how id add custom css class based on section resides? or know way target 1 specific dynamically added plupload input codeception?
you can value via js , use it.
in case, (my html somehow complicated, idea same in every case)
$profileid = $i->executejs('return $("#album_3_idalbum").parent(".album-no-cover").find(".moxie-shim.moxie-shim-html5").attr("id")');
Comments
Post a Comment