6
I’m new to Javascript and needed to know what code I can use for this situation:
For example, I have a column called "Product" which is of choice type and I wanted to select an option from that column for example "chocolate" automatically in the other column named "guy" the product type was placed in this case "candy".
<script type = "text/javascript">
document.getElementById('id').style.display = 'none';
function NovaFuncaoDespesas()
{
var Despesas = document.getElementById('id') ;
var Rubrica = document.getElementById('Rubrica');
var rubrica=Rubrica.options[Rubrica.selectedIndex].text;
if(rubrica=="Ativos Tangíveis Específicos")
{
Despesas.options[1].disabled=true;
}
if(rubrica!="Ativos Tangíveis Específicos")
}
</script>
Puts what you have so far to serve as the basis for the answer.
– David
Do you already have all the categories and products on the client side? or do you need to consult the products of the selected category on the server? if you need to query, what are you using on the server? C#, Java, Node, PHP?
– Tobias Mesquita
In this I am working on a page Sharepoint and then through the site of the same I can iditar using javascript or other
– Andre Brandao
André, take a look here: http://answall.com/q/76939/129 and see if this solves your problem. Otherwise, put in HTML so we can understand your problem better.
– Sergio
@Andrebrandao, Sharepoint has it native, or via Sharepointdesigner. See if you’re not trying to reinvent the wheel.
– Thiago Lunardi