href « String « 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 » String » href 

1. jQuery: Select which href contains some string    stackoverflow.com

Is it possible using jQuery to select all <a> links which href ends with "ABC" for example, if i want to find this link <a href="http://server/page.aspx?id=ABC"> Thanks in advance

2. jQuery: if string matches one of these href's    stackoverflow.com

I have this var in my code:

var href = $(this).attr('href'),
str = href.split('/').slice(-2,-1)[0];
How do I check if 'images', 'images-2' or 'images-3' matches the 'href' string, then do something..

3. How to grab a href value in a simplemodal call and pass the query string along?    stackoverflow.com

I'm trying to get a php page to load in a simplemodal window, and to pass a query string along, something like

<a href="my_script.php?var1=value1&var2=value2" class="simple_modal">
What JS code would I need to load ...

4. Checking href for presence of a query string in jQuery    stackoverflow.com

I currently have this bit of jQuery I am using to append a URL with some location information.

jQuery('a').attr('href', function() {
            ...

5. getting attr href from string    forum.jquery.com

6. [jQuery] Selecting element where the href contains string    forum.jquery.com

I'm trying to add a class to a

  • where the href within it containsa string. I can apply the class to the anchor without a problem, butI can't seem to select the parent. Is an anchor a child?
  • Random Stuff
  • In this case, since the href contains .xls, I'd like to be able to adda class to it. I've tried a ...

    7. [jQuery] Translate standard HREF's into JavaScript expressions -- string manipulation help..    forum.jquery.com

    Hi Michael & PaulThanks for your replies - both expressions work !(plus another I worked on prior to your responses).Just have to say thanks for the great jquery community supportofferred hereWhile I have your attention - had another question to ask....Since I am translating the standard hrefs with calls to jquery ajaxfpr tje entire CMShow does this effect SEO and other ...

    8. Jquery: append query string to href    sitepoint.com

    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.