Force dropdown to open
$("#selSizes").attr("size", "5")
$("#selSizes").attr("size", "5")
...All those moments will be lost in time, like tears in rain....- soliloquy from Blade Runner
Bits and bytes do get lost, awash in the rain of data flow that is Internet. They slip away from us, never to found again... some of them will be captured here, many more will not... like tears in rain... |
apply
if you don't know the number of arguments you
will be passing, (or if they are already in an array or array-like object).call
otherwise, since there's no need to wrap the arguments in an array.f.call(thisObject, a, b, c); // Fixed number of arguments f.apply(thisObject, arguments); // Forward arguments var args = []; while (...) { args.push(some_value()); } f.apply(thisObject, args); // Unknown number of arguments