Re: [jQuery] confirm link

2007-03-05 Thread smeranda
#x27;).attr("value"); > if (dataControl.length > 0) { > if (confirm("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; >

Re: [jQuery] confirm link

2007-03-05 Thread smeranda
don't want something to happen. so if > (confirm('whatever')) { 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

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

[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] Adding class to dynamic element

2006-10-27 Thread smeranda
t()+"' value='3'> class='currenttotal'>") > .find("label").css({ 'display':'-moz-inline-box', > 'textAlign':'left' }) > .find("span").css({ 'display&#

[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", xml).each(function(i

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") ; >

[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 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 s