Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here i some javascript use to input field hide and show. It work in firefox well, but not working on chrome. Below my code to your refferrance.

Please visite this link: Edit fiddle - JSFiddle[^]

What I have tried:

JavaScript
$("#other-school").hide();
  
$("#other").click(function(){
   $("#other-school").show();
});
	
$("#school").click(function(){
   $("#other-school").hide();
});  
Posted
Updated 12-Jul-18 20:42pm
v2
Comments
Kornfeld Eliyahu Peter 12-Jul-18 6:52am    
http://jsfiddle.net/vwt10rce/2/
I run it in Chrome and it works like charm...
Bryian Tan 13-Jul-18 0:18am    
work for me too, in Chrome browser.

1 solution

  $('select').on('change', function() {
 if($('select[name=school_name]').val()=="scool1")
{
 $("#other-school").hide();
}
else
{
 $("#other-school").show();
}
})



try this
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900