Re: [jQuery] how to get value between brackets in a string

2009-12-14 Thread tony stamp
thanks, but out of interest, how do i just get the number value? Leonardo K wrote: > > $('#pageCount').text().replace(')','').replace('(','') > > On Mon, Dec 14, 2009 at 10:41, tony stamp wrote: > >> >> I have a

[jQuery] how to get value between brackets in a string

2009-12-14 Thread tony stamp
I have a simple span element with the id of pageCount, which has a value of "(5)", for example. I am attempting to get the just number value without the brackets, or some way of adjusting the number and leaving the brackets. Any pointers? -- View this message in context: http://old.nabble.com/ho

[jQuery] adding event to dynamic element

2009-11-20 Thread tony stamp
Hello I am using ajax in an autocomplete feature, and to resuse the existing templates, i am attempting to dynamically add a close button/link to the autocomplete results. I understand that i cannot add an event listener to newly created elements, so i am creating the element using the live() fu

[jQuery] Getting position of link parent in table

2009-11-03 Thread tony stamp
Hello I have one anchor link per row in my table's td's with a css class of .viewLink, and have attached a simple event to display a div with the contents from an ajax request. Now i am trying to align the popup with the position of the link, or row at least. Here is the code i have so far. $(d