MemoryRefresh!

Check if exists



Questions Answers 0%

Pages   0 from 18
Questions   0 from 23

Reset




<script src="https://code.jquery.com/jquery-1.10.2.js"></script> <div id='mydiv'>My div</div> <script> if ($("#mydiv").length > 0) { $("#mydiv").html("My div exists"); } </script>
http://aaronrussell.co.uk
Questions
1) Check if element exists.





Last Review: n/a   Passed: n/a   Reviews: n/a   Next Review: n/a  



<script src="https://code.jquery.com/jquery-1.10.2.js"></script> <div id='mydiv'>My div</div> <script> if ($("#mydiv").length > 0) { $("#mydiv").html("My div exists"); } </script>
http://aaronrussell.co.uk



More from Jquery

Effects
Window
Attributes
Data
Element
Basics
Ajax
Form
Uncategorized


More from Programming

Php
jQuery




Powered by minte9.com