Javascript properties to jquery variables
<p>I'm making a little script right now and one of the inputs for an arg of the main function is an element. In order to make sure that raw JS works for this stuff I'm doing <code>theelement.value</code> to get the variable's value. Unfortunately, that doesn't work if <code>thelement</code> is a jquery function, like <code>$('#foo')</code>. Some other reasons I need this kind of compatibility is that I need access to <code>theelement.style</code>, once again something jquery doesn't support. I know there are jquery workarounds for these (<code>.css(), .val()</code> etc.) but if I use those, then regular js inputs (<code>document.getElementbyId('foo')</code>) won't work. Is there any way to use one "property" and make it universal against all inputs of elements (including stuff from libraries like prototype and Dojo)?</p>
