For example a div tag url added.
<div id="uri_1">www.sitename.com</div>
<div id="uri_2">www.sitename.com/?utm_source</div>
How do I know whether a url is plain or there is a "?
" behind the domain.
I want to make use jQuery / Javascript is also allowed.
Less is more, I need code like this:
<script>
var uri_1 = $('#uri_1').html();
var uri_2 = $('#uri_2').html();
// alert();
// uri_1 do not wear pins "?"
// uri_2 there is a sign "?"
</script>
Sorry if my question is difficult to understand, but I really need your help. Thanks.