having issue with triggering the submit function with included js file

i am having an problem while triggering the form submition. i am setting the form into inner html using the included js file in the header of page. As:

the form submittion is implemeting in the included js file in the header. but they are not listening my submit function.As:

$('#acc').submit(function(){

  alert("dsds");
  return false;
});

Same js function also not working in the same file. please help how i can make it listen the above “lead_form” submittion.?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s