')) { do_whatever(); } else return false;
smeranda wrote:
When a user clicks a link and a form field currently has data, a
confirmation box appears. This is close to working, but if a user clicks
'cancel' the browser still redirects to the a href URL. What am I doing
wrong?
$(a).click(function
(You have made changes to this date which have not
been
saved.\n\nAre you sure you want to navigate from this page?)) {
document.location = url;
return true;
} else return false;
}
}
smeranda wrote:
Still no luck
How do I use jquery to find a particular table cell based of the text inside
the cell and add a .css class to the table cell?
--
View this message in context:
http://www.nabble.com/find-table-cell-by-text-inside-tf2720766.html#a7587041
Sent from the JQuery mailing list archive at Nabble.com.
That worked great, thanks!
Giuliano Marcangelo wrote:
$(#SomeID td).contains(sometext).addClass(someClass);
On 28/11/06, smeranda [EMAIL PROTECTED] wrote:
How do I use jquery to find a particular table cell based of the text
inside
the cell and add a .css class to the table cell
',
'textAlign':'left' })
.find(span).css({ 'display':'block', 'width' = '120px'
}).end()
.end();
.appendTo(#appointmentList);
});
On 10/27/06, smeranda [EMAIL PROTECTED] wrote:
I am trying to add a class (.currenttotal) to a dynamically generated
I am trying to add a class (.currenttotal) to a dynamically generated span
element. How can I do this?
Basically, I am pulling an xml file and using the information to create an
interface. I need to add the .currenttotal class to the registeredSpan. Any
ideas?
$(majorname,
Perfect, that is what I needed! Thank you very much!
-Seth
Glen Lipka wrote:
Not sure if it makes a difference..but I think this would work too
$(document).ready(function() {
$(td).click(function() {
var id = $(this).attr(id) http://this.id/;
// now do
How do I get the id of the item which was just clicked?
For instance, if a user clicks a td which has a specific id, how do I use
this id in my script?
$(document).ready(function() {
$(td).click(function() {
// get the id of the table cell clicked
// use the id in a