index.js
function selectorForm(selector) {
    var str;
    if (selector.indexOf('[') !== -1) {
        var newSelector = attributeEquals(selector);
        newSelector = newSelector.replace('sel=', ''); // valid sass syntax
        var firstSelector = firstPart(selector);
        if (firstSelector in jquerySelectors) {
            str = jquerySelectors[firstSelector]
                  .replace('%', '"' + newSelector + '"');
        }
    } else
    if (selector in jquerySelectors) {
        str = jquerySelectors[selector].replace('%', '');
    } else {
        str = '$("' + selector + '")';
    }
    return str;
}
function selectorForm(selector) {
    var str;
    if (selector.indexOf('[') !== -1) {
        var newSelector = attributeEquals(selector);
        newSelector = newSelector.replace('sel=', ''); // valid sass syntax
        var firstSelector = firstPart(selector);
        if (firstSelector in jquerySelectors) {
            str = jquerySelectors[firstSelector]
                  .replace('%', '"' + newSelector + '"');
        }
    } else
    if (selector in jquerySelectors) {
        str = jquerySelectors[selector].replace('%', '');
    } else {
        str = '$("' + selector + '")';
    }
    return str;
}
function selectorForm ( selector ) { var str ; if ( selector . indexOf ( '[' ) !== - 1 ) { var newSelector = attributeEquals ( selector ) ; newSelector = newSelector . replace ( 'sel=' , '' ) ; // valid sass syntax var firstSelector = firstPart ( selector ) ; if ( firstSelector in jquerySelectors ) { str = jquerySelectors [ firstSelector ] . replace ( '%' , '"' + newSelector + '"' ) ; } } else if ( selector in jquerySelectors ) { str = jquerySelectors [ selector ] . replace ( '%' , '' ) ; } else { str = '$("' + selector + '")' ; } return str ; }
Create a jquery selector
@param  {string} selector target or element selector
@return {string}          returns selector form
Create a jquery selector