0

How would I achieve this functionality without using jQuery?

 ...

<noscript>
   <div style="left:0; right: 0; top: 40px; bottom: 0; position: absolute; text-align: center; vertical-align: middle">
    <span class="alert alert-info">This page requires JavaScript to be enabled to work.</span>
    </div>
</noscript>

...

<div id="application" style="display: none"  ng-controller="MyController" >
    ....Application HTML...
</div>

...

<script>
   $('#application').show()
</script>
2
  • 1
    you mean without javascript? or just jquery in particular Commented Feb 10, 2014 at 19:34
  • Preferrably using AngularJS style code, using directives or otherwise. Commented Feb 12, 2014 at 14:50

2 Answers 2

3

You can hide application div using plain CSS use style in

<noscript>
    <style>
        #application { display: none; }
    <style>
</noscript>
Sign up to request clarification or add additional context in comments.

Comments

0

Like this...

// $('#application').show()
document.getElementById('application').style.display = "block"

Demo: http://jsfiddle.net/billymoon/C2V2J/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.