missing ; before statement
hi at all,
I have a issue with the application of one of my jQuery functions, exactly I have programmed this code:
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery("#repository").click(function(event){ //just because prototype is running
if(jQuery("#repository").val()=="local")
{
jQuery("#localbrowse").css("display", "block"));
}else{
jQuery("#localbrowse").css("display", "none"));
}
if (jQuery("#repository").val()=="remoto")
{
jQuery("#serverlist").css("display", "block"));
}else{
jQuery("#serverlist").css("display", "none"));
}
});
});
in the html code I have the following:
<select name="repository" id="repository" class="blastNormal" style="text-align:left;">
<option value=""></option>
<option value="local">local</option>
<option value="remoto">remoto</option>
</select>
</td>
<td>
<tr>
<td>
<div id="localbrowse" style="display:none"><input id="localbrowse" name="userfile" type="file" size="80"></input></div>
</td>
I would like to show and hide the div with the id "localbrowse" and another div with id "serverlist".
But it says this bug:
missing ; before statement in: