Of syg6
Sent: Tuesday, November 06, 2007 9:02 AM
To: jQuery (English)
Subject: [jQuery] Text finder in html
I am trying to create a javascript-based text finder using jQuery. I have a
table like this:
table id=dataTable
tr
td
data 1
/td
/tr
tr
td
data 2
/td
/tr
I am trying to create a javascript-based text finder using jQuery. I
have a table like this:
table id=dataTable
tr
td
data 1
/td
/tr
tr
td
data 2
/td
/tr
tr
td
data 3
/td
/tr
/table
And I would like to be able to search for a text in any of the tds
and highlight it. I
ids for elements on your page, do not rely on
selecting them by $('#id')!)
syg6-2 wrote:
For reasons I won't go into here I have a page which has a table with
a variable amount of rows. Each row has a hidden, text, and select.
They all have the same name. I also have other
For reasons I won't go into here I have a page which has a table with
a variable amount of rows. Each row has a hidden, text, and select.
They all have the same name. I also have other selects on the page
with different names.
What I need to do is access only the selects, to be able to add and
v1.2.1)
select id='app.id' name='fred'
option value='11'one/option
option value='22' selected='selected'two/option
/select
var t = $('#app\\.id').val(); // t is 22
syg6-2 wrote:
In the FAQ it says that if you have an element with a 'special
character' in it you must escape
In the FAQ it says that if you have an element with a 'special
character' in it you must escape it. Fair enough. I have this select:
select id='app.id'
option...
/select
When I try the following:
$(select#app\\.id).val()
I get null. These don't work either:
$(#app\\.id).val()
to replace:
$('.date-pick').datePicker({clickInput:true});
with:
jQuery('.date-pick').datePicker({clickInput:true});
Hope that helps,
Kelvin :)
syg6 wrote:
Thank you both, Kelvin and Klaus, for your replies.
Yes, I saw that page and after a quick read decided (incorrectly
Hello all.
I posted this over at Appfuse's Nabble list as first, but then thought
this would be the better place.
I have a default.jsp page that uses SiteMesh to 'decorate' all of my
jsps. It contains the following js libraries:
prototype.js
scriptaculous.js
global.js
In order to use
?
Many thanks!
Bob
On Aug 8, 1:13 pm, Klaus Hartl [EMAIL PROTECTED] wrote:
syg6 wrote:
Hello all.
I posted this over at Appfuse's Nabble list as first, but then thought
this would be the better place.
I have a default.jsp page that uses SiteMesh to 'decorate' all of my
jsps. It contains
9 matches
Mail list logo