First I'll explain my senario:
I have a page in which users login or register. The login control and the register textbox are in two different divs and I use jQuery to hide one and show another.
Then in register div I have a ScriptManager and an UpdatePanel and inside it's content template I have my button called check, which checks that the given username is not already chosen. (I have it in there because I don't want a postback).
Now I want to code this:
When the button event check the username after it should call a jQuery function to show me the div in which all my other textboxes are contained.
$(document).ready(function () {
var ide = $("#reg");
var log = $("#login");
var reg = $("#register");
var regfull = $("#regfull");
reg.hide();
regfull.hide();
ide.click(function () {
log.fadeOut().delay(1000);
reg.show("slow");
});
function completereg() {
regfull.show();
}
});
This is my jQuery and I want to call the completereg(); from code behind button onclick event and my button is in UpdatePanel.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)