tags:

views:

60

answers:

2

Hi guys,

I've a form with different field, a validation summary and a button Sign up! When I click on Sign up, if a field is empty, it active validation summary and until here there's no problem.

So the problem is that I would want active a jQuery script after it was clicked Sign up button and it appeared validation summary.

I try with

$(this).load(function()

but in effect it occur when the page is load and not after the button is clicked. I try also use button's onclick ,but I have to use script after onclick and not while.

I used Validation group for all field of form, also button and for this reason it seems doesn't postback!

+1  A: 

Um your question is a bit unclear to me but wouldn't this work ?

$("#sign_btn").click(function(){
 alert("I was clicked");
});

sign_btn is the ID of the button.

Iraklis
A: 

Sorry, maybe I was unclear.

I have to use jQuery because my layout is adapted by jQuery according by the content. So, I have a layout based on three column and when validation summary it appear because of one or more field are empty, center coloum is more long than left and right column.

So I want to use jQuery after it apperead validation summary to adapt the layout at the same height for three coloumn

Ivan90
You should edit your answer or post a comment to a question rather than adding a new answer... Iraklis' answer is using jQuery?
Paddy
When you say "validation" do you mean a JQuery validation plugin? If so you need to read its Docs/Manual and see how it works so you can resize your columns depending on the result of the validation.
Iraklis
Sorry :) I am newbie and I must accustom to this community :) Yes Iraklis is using jQuery but unfortunately is not that I searched :(
Ivan90
for Iraklis : I use asp.net validation summary
Ivan90
post some code please.
Iraklis