I am after documentation on using wildcard or regular expressions (not sure on the exact terminology) with a jQuery selector.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Friday, June 1, 2012
jQuery selector regular expressions
Tuesday, May 29, 2012
How can I get which radio is selected via jQuery?
I have two radio buttons and want to post the value of the selected one, how can I get the value with jQuery?
Friday, May 25, 2012
$(this) selector and children?
I'd like to use a selector to select the child img of the div I'm clicking on this example:
Sunday, May 13, 2012
jquery selector to count the number of visible table rows?
I've got this html:
<table>
<tr style="display:table-row"><td>blah</td></tr>
<tr style="display:none"><td>blah</td></tr>
<tr style="display:none"><td>blah</td></tr>
<tr style="display:table-row"><td>blah</td></tr>
<tr style="display:table-row"><td>blah</td></tr>
</table>
Tuesday, May 1, 2012
Why "select” options are hidden?
I have a HTML select like this:
<select name="something">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
</select>
Tuesday, April 17, 2012
Which is more efficient: .parent().parent().parent() ~or~ parents(".foo”) ~or~ closest(".foo”)
I have an A tag which triggers the animation of it's great-great-great-grandparent. All of the following will work, but which is most efficient, and why?
jQuery :contains selector to search for multiple strings
Assuming i have:
<li id="1">Mary</li>
<li id="2">John, Mary, Dave</li>
<li id="3">John, Dave, Mary</li>
<li id="4">John</li>
Thursday, April 12, 2012
jQuery: How to select "from here until the next H2”?
I'm setting up a very straightforward FAQ page with jQuery. Like so:
Monday, February 13, 2012
How do you remove a class that matches a pattern from the class attribute, but retain the other classes?
I want to delete the classes that end with 'blue' from the class attribute on all tags
Wednesday, January 18, 2012
Setting the id of a link based on it"s href
$('.portfolioThumbs ul li a').mouseover(
function(){
var buttLink = $(this).attr('href')
var buttLinkArray = buttLink.split( '/' ); // Split the URL after each / and Create an array of each
var pFN = buttLinkArray[2]; // We want the Portfolio Folder Name
var url = window.location.pathname;
$('.galleryNav ul li a').removeClass('hovered');
$('.galleryNav ul li a' + '#' + pFN).addClass('hovered');
window.location.pathname = url + '#' + pFN;
}
);