It could be a rookie mistake, but I’ve gone over my code enough times doing things such as; pre-pending .select-delete with div, attempted to use document.write("Hello") to see if the event was firing or not.
Here’s a link to my jsFiddle: http://jsfiddle.net/gPF8X/5/
I really have no idea what’s going on :(.
Any help would be greatly appreciated!
Edit: Linked to the incorrect JSFiddle, relinked to the correct one.
The trigger is firing, but your code is not running because of an error – you’re not quoting the string ‘id’ so it’s an undefined value. Use your browser’s debugger tool – it will help for this sort of thing.
Beyond that though, I can’t say anything further because it’s not clear what the desired result is.
Edit There’s another issue as well – the selector is not working. You can’t use the
[and]character unquoted inside a jQuery comparison like that. The simplest solution is just not to have those characters in your input names. But you can also use escaping like so:$('select[name=g_country\\['+value+'\\]]').