Re: [jQuery] confirm link

2007-03-05 Thread smeranda
')) { 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

Re: [jQuery] confirm link

2007-03-05 Thread smeranda
(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

[jQuery] find table cell by text inside

2006-11-28 Thread smeranda
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.

Re: [jQuery] find table cell by text inside

2006-11-28 Thread smeranda
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

Re: [jQuery] Adding class to dynamic element

2006-10-27 Thread smeranda
', '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

[jQuery] Adding class to dynamic element

2006-10-26 Thread smeranda
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,

Re: [jQuery] Get element ID

2006-10-21 Thread smeranda
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

[jQuery] Get element ID

2006-10-20 Thread smeranda
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