title: split url using jquery
body: <p>I have try to split url using jquery but its gives me error.</p>
  
  <p><strong>URL is</strong> </p>
  
  <pre><code>&lt;form action="http://localhost:8000/test/checkout/cart/add/uenc/aHR0cDovL2xvY2FsaG9zdDo4MDAwL3VtYS9wcC1wbGF0dGVuLWdyYXUtY29uZmlndXJlLXRlc3QuaHRtbA,,/product/1257/form_key/zcxhPfw8sSn5XgdI/" method="post" id="product_addtocart_form"&gt;
  </code></pre>
  
  <p>Bellow is my code </p>
  
  <pre><code>var formUrl = jQuery("#product_addtocart_form").attr("action");
  var result = jQuery(formUrl).split('/product');
  alert( result[1] );
  </code></pre>
  
  <p><strong>error</strong></p>
  
  <pre><code>Error: Syntax error, unrecognized expression: http://localhost:8000/test/checkout/cart/add/uenc/aHR0cDovL2xvY2FsaG9zdDo4MDAwL3VtYS9wcC1wbGF0dGVuLWdyYXUtY29uZmlndXJlLXRlc3QuaHRtbA,,/product/1257/form_key/zcxhPfw8sSn5XgdI/
  </code></pre>