live() doesn't support submit()
http://docs.jquery.com/Events/live

your each should work assuming there is an attribute "validate" in your markup

instead of live look at livequery plugin

j...@creatusadvertising.com wrote:
Hi!

I have this code:


		$("form.uplform").live('submit', function(){
			if($(this).attr('validate')=='true'){
				$("#testform>input").each(function(){
					alert($(this).attr('name'));
				});
			}
			return false;
		});


What I'm trying to achieve is alert all the name attributes of all
input boxes belonging to form.uploform but this does not seem to
happen. although i did get past if validate==true thing..

Please tell me what i am doing wrong..

Thanks in advance

  

Reply via email to