[jQuery] Re: Text manipulation : retrieve tag

2009-07-23 Thread Kris-I
In fact all the text/code is in a variable, it's not display on the screen. The page is more like this : *strong text* MyMessage body {font-family:"Verdana";font-weight:normal;font-size: . 7em;color:black;} Server Error in '/' Application. My

[jQuery] Re: Text manipulation : retrieve tag

2009-07-23 Thread Charlie
I don't believe title tag is valid in body tag however regardless of tag placement try this  alert($('title').text()); Kris-I wrote: Hello, I have an HTML text with text and tags I'd like to get only the text between the tags Then I have this: start text Text to get end text i'd l

[jQuery] Re: Text Manipulation

2009-01-26 Thread whtthehecker
This works great! Thanks a lot for the help Jay! On Jan 23, 7:08 pm, jay wrote: > Something like this should work: > > str = $(textinput).val(); > $(textinput).val(  str.substr(0,str.indexOf("@"))  ); > > On Jan 23, 7:51 pm, whtthehecker wrote: > > > Hi, > > > I'm trying to create a sign up for

[jQuery] Re: Text Manipulation

2009-01-23 Thread jay
Something like this should work: str = $(textinput).val(); $(textinput).val( str.substr(0,str.indexOf("@")) ); On Jan 23, 7:51 pm, whtthehecker wrote: > Hi, > > I'm trying to create a sign up form where after the user inputs their > email address when they click or tab down to the next field

[jQuery] Re: Text manipulation on a menu

2007-09-14 Thread Karl Swedberg
Hi there, The .hover() method takes two arguments -- one for mouseover and one for mouseout. They are separated by a comma: .hover(function() { // Stuff to do when the mouse enters the element; }, function() { // Stuff to do when the mouse leaves the element; }); Yours has onl

[jQuery] Re: Text manipulation on a menu

2007-09-14 Thread Richard D. Worth
Use filter() for getting only the first 2 levels. Then add the arrow once and use hover to show() and hide(). Something like this: $("ul.nav li a") .filter(function() { return !!($(this).parents('ul').slice(0,2).filter('.nav').length); }) .append(' 〉') .hover(function() { $('.arrow

[jQuery] Re: Text manipulation on a menu

2007-09-14 Thread dogslife
Just to update, the following works (with errors though) by adding an arrow, but how do I keep it from adding the arrow on level3? Also the code generates this error: error --- g has no properties handleHover(Object type=mouseout target=a currentTarget=a eventPhase=2)jquery.js (li