Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id=Line1>1</div>
- <div id=Line2>2</div>
- <div id=Line3>3</div>
- <div id=Line4>4</div>
- <div id=Line5>5</div>
- <div id=Line6>6</div>
- <div id=Line7>7</div>
- <div id=Line8>8</div>
- <div id=Line9>9</div>
- <div id=Line10>10</div>
- $('div').slice(5); //select the sixth element and those after it
- $('div').filter(function() {
- return (+this.id.slice(4) >= 6);
- });
- var divs = $("div[id^='Line']").filter(function(){
- var text = "Line";
- var value = this.id.split(text)[1];
- return (value > 5);
- });
- $('div[id^=Line]:gt(4)')
- var q = $('#Line6,#Line7,#Line8,#Line9,#Line10');
- var s = [];
- for (var i = x; i <= y; i++) s.push('#Line' + i);
- var q = $(s.join(','));
- <div id=Line1>1</div>
- --^
- $('div[id^="line"]').filter(function(){
- var = this.id.match(/d+/g);
- return (id >= 6 && id <= 10)
- })
- $(function() {
- $elems = $("div[id^='Line']");
- $elems.filter(function() {
- var matches = this.id.match(/d+/);
- var numb = parseInt(matches[0]);
- return ((numb > 5) && (numb <= 10));
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement