mukesh55965 .

mukesh55965 .

  • NA
  • 69
  • 5.2k

How to Call multiple time function in java scrip

Mar 20 2017 1:07 AM
below is my code i want to know to how to work on every onclick function it is working one time but i want to know to work multipletime
when i click on  Plus Image and it goes on enbrow() function then3 text box open but when i click on again Plus Image and it goes on First() function then text box is not showing so i want to know how to open text box on every java script function i want to open ten time means 10 time i want to click on plus symbol and 30 text box open
 
i give you below code so please help me
 
 
<script language="javascript">
function enbrow() {
alert("enable first row");
document.getElementById("firstrw").style.display = "block";
}
function First() {
alert("You clicked One");
document.getElementById("firstrw").style.display = "block";
}
function Second() {
alert("You clicked two");
document.getElementById("firstrw").style.display = "block";
}
  
</script>
 
 
 
 
 
<div class="col-xs-6 col-md-12">
<label for="firstName">4.Whether names, telephone no's of authoritites to contacted have been publicized/made available to freshers</label>
<%--<input class="form-control" name="firstname" placeholder="First Name" type="text"--%>
<div>
<asp:TextBox ID="TextBox2" class="form-control" runat="server" required autofocus style="width:32%;float:left; margin-right:7px;" placeholder="Name"></asp:TextBox>
<asp:TextBox ID="TextBox20" class="form-control" runat="server" required autofocus style="width:32%;float:left; margin-right:7px;" placeholder="Designation"></asp:TextBox>
<asp:Textbox ID="text" class="form-control" runat="server" required style="width:25%;float:left; margin-right:7px;float:left;" placeholder="Contact" />
<img src="http://findicons.com/files/icons/1007/crystal_like/128/plus.png" width="25" height="25" style="margin-top:5px;" onclick="enbrow();">
</div>
<div style="clear:both"> </div>
<div style="margin-top:15px;display:none;" id="firstrw">
<asp:TextBox ID="TextBox9" class="form-control" runat="server" required autofocus style="width:32%;float:left; margin-right:7px;" placeholder="Name"></asp:TextBox>
<asp:TextBox ID="TextBox10" class="form-control" runat="server" required autofocus style="width:32%;float:left; margin-right:7px;" placeholder="Designation"></asp:TextBox>
<asp:Textbox ID="Textbox11" class="form-control" runat="server" required style="width:25%;float:left; margin-right:7px;float:left;" placeholder="Contact" />
<img src="http://findicons.com/files/icons/1007/crystal_like/128/plus.png" width="25" height="25" style="margin-top:5px;" onclick="First();">
</div>
<div style="clear:both"> </div>
<div style="margin-top:15px;display:none;" id="Div4">
<asp:TextBox ID="TextBox39" class="form-control" runat="server" required autofocus style="width:32%;float:left; margin-right:7px;" placeholder="Name"></asp:TextBox>
<img src="http://findicons.com/files/icons/1007/crystal_like/128/plus.png" width="25" height="25" style="margin-top:5px;" onclick="First();">  
<asp:TextBox ID="TextBox40" class="form-control" runat="server" required autofocus style="width:32%;float:left; margin-right:7px;" placeholder="Designation"></asp:TextBox>
<asp:Textbox ID="Textbox41" class="form-control" runat="server" required style="width:25%;float:left; margin-right:7px;float:left;" placeholder="Contact" />
</div>
<img src="http://findicons.com/files/icons/1007/crystal_like/128/plus.png" width="25" height="25" style="margin-top:5px;" onclick="second();">
</div>
<div style="clear:both"> </div>
<div style="margin-top:15px;display:none;" id="Div4">
<asp:TextBox ID="TextBox39" class="form-control" runat="server" required autofocus style="width:32%;float:left; margin-right:7px;" placeholder="Name"></asp:TextBox>
<asp:TextBox ID="TextBox40" class="form-control" runat="server" required autofocus style="width:32%;float:left; margin-right:7px;" placeholder="Designation"></asp:TextBox>
<asp:Textbox ID="Textbox41" class="form-control" runat="server" required style="width:25%;float:left; margin-right:7px;float:left;" placeholder="Contact" />
</div>
 
 
 
 

Answers (1)