Click here to Skip to main content
14,668,907 members
Rate this:
Please Sign up or sign in to vote.
See more:
Can't able to maximize the Div by using a expansion button click

What I have tried:

I have a div,have div id "dvOuterMsgBox" and has style class ".dvEdit" .
Default loading style is ".dvEdit".
I add another style class for expanding the same div by hiding the old style class named ".dvMaximize" .
I called this two style classes in my Div is ::
<div id="dvOuterMsgBox" class="dvEdit dvMaximize" runat="server" style="display: none;">

and my Jquery for expanding the Div is ::
$(document).ready(function () {
    $("[id$=imgbtnMaximize]").click(function () {
        if ($("[id$=dvOuterMsgBox]").hasClass("dvMaximize")) {

This will only call the first style class and hide it but can't call the second style class.. How to solve it?? Anybody help me..
Updated 10-Apr-18 23:20pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Got the answer, by replacing the first class with second class.
Thanks Everybody

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100