selector « URL « jQuery Q&A

Home
jQuery Q&A
1.addClass
2.alert
3.array
4.attribute
5.browser
6.callback
7.clone
8.Cookie
9.Date
10.Development
11.document
12.dom
13.element
14.filter
15.Firefox
16.flash
17.format
18.html
19.input
20.internet explorer
21.json
22.mootools
23.page
24.performance
25.regex
26.safari
27.selector
28.setTimeout
29.String
30.table
31.Text
32.trigger
33.URL
34.video
35.xml
jQuery Q&A » URL » selector 

1. jQuery: Select which points to the current URL    stackoverflow.com

In jQuery, how do you select the <a> which href is pointing to the current URL For example:
URL = http://server/dir/script.aspx?id=1 I want to select this <a>
<a href="/dir/script.aspx">...</a> I tried this but it ...

2. JQuery isn't recognising a #id selector, seems to be dependent on the URL    stackoverflow.com

I'm writing a Ruby on Rails app. The following jQuery code is included in the head tag of the index.html.erb file, which is the template for all pages on the site.

<script>
 ...

3. How can I replace parts of href link based on url selector    stackoverflow.com

<a class="change_this" href="http://www.site1.com">Link 1 Type 1</a>
<a class="change_this" href="http://MyID.site1.com">Link 1 Type 2</a>
<a class="change_this" href="http://www.site2.com/?refid=myid2">Link 2 Type 1</a>
<a class="change_this" href="http://www.site2.com/myid2/">Link 2 Type 2</a>
<a href="http://www.site3.com/">Nothing changes</a>
I have the above html inside an example page ...

4. How to load script with jquery.load()?    stackoverflow.com

I have a question. In my file content.html I have script. When load this with the load() function of jQuery, the page shows but the script doesn't work. I think it's because ...

5. How do I pass the Variables from Javascript Url    stackoverflow.com

I have a form on filling all the information and it refreshes and go to the same form . which needs 2 parametrs to be passed to the ...

6. Jquery: Getting certain url path using window.location    stackoverflow.com

Our url pathname is

www.nicadpower.com/index.com
but we only want to get the pathname after www.nicadpower.com which is
index.com
how can we get index.com using window.location and jquery

7. URL - look through the URL for string    stackoverflow.com

I have following html menu:

<ul>
    <li><a href="About/about-page.html"></a></li>
    <li><a href="Services/services-page.html"></a></li>
</ul>
How can I with jQuery check if current URL have string of for example 'About/' (as 'about' ...

8. Can URL tell jQuery to run a function?    stackoverflow.com

Have a question regarding URL and jQuery. Can I specify URL to tell jQuery to run a function? e.g http://www.website.com/about.html?XYZ to run a function XYZ();?

9. passing #foo selectors into $.get() data URL parameters    stackoverflow.com

I am trying to make an ajax call using $.get() where I want to pass in a specific element selector (#id) into the data:

$.get('http://www.url.com',
    {
    ...

10. JQuery - Can't select dynamically created URL tag by class    stackoverflow.com

So I am creating a TagCloud for my site and am having issues being able to use JQuery to alert me of the selected link. The site created the links just fine, ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.