[jQuery] img src attribute after append(), html()...

2009-07-08 Thread rinse_my_phonebook
When I call $('#mydiv').append(''); I get http://localhost:53072/pathtocurrentpage/a/b/ image.jpg" /> Which is not what I want. Can anyone tell me why I get this or even how I can stop jquery from changing my src attribute? Thanks in advance.

[jQuery] Trouble constructing selector string.

2009-06-12 Thread rinse_my_phonebook
var t = 'input.ffControl[value="Add a Value"]:first'; var s = 'input.ffControl[value="Add a '+$(this).attr('class') +'"]:first'; if(s == t) { alert(s); } $(t,this).val('gotcha'); Hi there, Can anyone

[jQuery] Trouble constructing selector string.

2009-06-12 Thread rinse_my_phonebook
Hi there, I'm having a bad time trying to work out what is wrong with my approach and hoping someone can enlighten me. Consider the following. var t = 'input.ffControl[value="Add a Value"]:first'; var s = 'input.ffControl[value="Add a '+$(this).att