KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to get only the numbers(123) not the text(confirm), here is my code <p>123confirm</p> <script type="text/javascript"> $(document).ready(function(){ $('p').click(function(){ var sd=$(this).text(); alert(sd); }); }); </script>
Tags (comma-separated)
Save Edits
Cancel