[jQuery] Re: How can I create an element dynamically using jQuery

2010-01-08 Thread Virgil Spruit
If you want to manipulate the DOM you can find it documented here; http://docs.jquery.com/Manipulation As for your question, you could either do the following; $(#foo).after(ptext I want to insert/p); $(#foo).before(ptext I want to insert/p); Or more neatly; var pToInsert = $('p/').append(text

[jQuery] Re: How to edit a portion of text

2009-12-16 Thread Virgil Spruit
. Thanks again for your help. On Dec 15, 5:25 pm, Virgil Spruit virgilspr...@gmail.com wrote: If you want to remove the strong tags you can use this plugin;http://benalman.com/projects/jquery-unwrap-plugin/ Or try these two lines of code; temp = $(.hentry).find(.excerpt).html

[jQuery] Re: JQuery - CSS - style unordered list

2009-12-15 Thread Virgil Spruit
If you want it to depend from the content you can combine 'filter' and 'contains' like so; $(li).filter(:contains('02'),:contains('03'),:contains ('06'),:contains('07')).css('background-color','green'); Or if its the position iterate over the ul's and the 'eq' looks up the position for each ul.

[jQuery] Re: JQuery - CSS - style unordered list

2009-12-15 Thread Virgil Spruit
If you want it to depend from the content you can combine 'filter' and 'contains' like so; $(li).filter(:contains('02'),:contains('03'),:contains ('06'),:contains('07')).addClass('color'); Or if its the position iterate over the ul's and the 'eq' looks up the position for each ul.

[jQuery] Re: JQuery - CSS - style unordered list

2009-12-15 Thread Virgil Spruit
If you want it to depend from the content you can combine 'filter' and 'contains' like so; $(li).filter(:contains('02'),:contains('03'),:contains ('06'),:contains('07')).addClass('color'); Or if its the position, iterate over the ul's and the 'eq' looks up the position for each li.

[jQuery] Re: How to edit a portion of text

2009-12-15 Thread Virgil Spruit
If you want to remove the strong tags you can use this plugin; http://benalman.com/projects/jquery-unwrap-plugin/ Or try these two lines of code; temp = $(.hentry).find(.excerpt).html() ; $(.hentry).find(.excerpt).before(temp).remove(); It fills the temp with the content of your strong tag and

[jQuery] Re: How do I select all elements whose id's begin with ... ?

2009-12-15 Thread Virgil Spruit
Here ya go! $(input[id^='DatePref']).val('hello!'); On Dec 15, 5:10 pm, laredotorn...@zipmail.com laredotorn...@zipmail.com wrote: Hi, I'm using JQuery 1.3.  How do I write an expression to select all elements whose id's begin with DatePref?  These are all input type=text elements if that

[jQuery] Re: Best Service

2009-12-11 Thread Virgil Spruit
This topic makes the Report spam quite usefull. Thanks. On Dec 11, 2:14 pm, globosoft skhalid@gmail.com wrote: Recently, I had a chance to outsource a project to Globosoft Technologies. They produce high quality work at a reasonable cost. If you are looking for the services like custom

[jQuery] Re: Superfish - content out of position

2009-12-10 Thread Virgil Spruit
You're on the wrong forum. This is a CSS problem. Try adding a clear:left to #mainContent. That should solve it. On 10 dec, 19:20, luciano991 mountain...@gmail.com wrote: Hello, I am wondering why my superfish menu is pushing my content out of postion on this page:

[jQuery] Re: Need to create 100% width layout.

2009-12-01 Thread Virgil Spruit
Not sure what behaviours you want to embed. But the following function is a solid base. var viewportwidth; var viewportheight; function viewportsizes(){ // the more standards compliant browsers (mozilla/netscape/opera/ IE7) use window.innerWidth and window.innerHeight if