substring javascript not working at all
<p>is there any reason why this wouldn't be working? </p>

<pre><code>     var caseString = "sliderInput";
     var theString = caseString.substring(1, 2);
</code></pre>

<p>I put it through the Firebug debugger in Firefox and it is giving me the error:
"invalid assignment left-hand side."</p>

<p>*<em>*</em> here is my exact code</p>

<pre><code>        var elements = new Array();
        elements = document.getElementsByTagName("Input");


var allSliderInputs = new Array();
var sliderParams = new Array();
var first, last, inc, style;

for (var i=0; i &lt; elements.length ; i++){
    var c = elements[i].className; //works fine here
    var t = c.substring(0, 2); //when it hits this line it says "invalid assignment left-hand side"

 }
</code></pre>
