javascript - Get the hidden input when clicking on textbox -


i need little how it..

i have done lot of search haven't find it.. please if can me out.

i have little code here:-

<div id="whats-new-content">   <div class="newtextbox">     <textarea class="mytextbox" id="myuniquetextbox" cols="50" rows="10" style="height: 50px;"></textarea>   </div>   <div id="whats-new-options" style="display: none;">     <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="submit">   </div> </div> 

as can see added style="display: none;" in div situated submit button.

i don't have lot of knowledge in jquery or javascript need simple javascript code change "display:none" "display:block" when click on textbox..

please need help, thank much...

$("#aw-whats-new-submit").hide();  $("#myuniquetextbox").click(function() {    $("#aw-whats-new-submit").show();  });
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>  <div id="whats-new-content">    <div class="newtextbox">      <textarea class="mytextbox" id="myuniquetextbox" cols="50" rows="10" style="height: 50px;"></textarea>    </div>    <div id="whats-new-options" >      <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="submit">    </div>  </div>


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -