Using variables in a jQuery function
<p>This line   $(''+fullId+'')   is giving me problems. I've created an array in a different function that gets the #id's of all the inputs in the DOM. </p>

<p>Now with this function i'm trying to create a blur and focus jQuery function. I've set the variable fullId to prepend the '"#' and append the '"' to the variable name, but how do I get it to work?</p>

<p>$(''+fullId+'') is not doing the trick and neither does $(fullId)</p>

<pre><code>function focusBlur () {

        var inputId = 0;
        var fullId = 0;

        for(var i=0; i&lt;size; i++) {

            inputId = arr.shift();
            fullId = "\"#"+inputId+"\"";


            $(''+fullId+'').blur(function() {

            });
            $(''+fullId+'').focus(function() {

            });
        }
    }
</code></pre>
