How to assign values to Bootstrap buttons

1

Bootstrap (how to make the menu bar assigning values to the buttons..ex .: I created the "Home" button, how can I assign a value to it when I access it I go to the start button page ...)

    
asked by anonymous 05.08.2014 / 22:06

3 answers

1

The btn and btn-* classes can be used in buttons ( <button> ) and links ( <a> ):

06.08.2014 / 12:50
0

You can create for example:

<a href="#"><button type="button" class="btn btn-default">Inicio</button></a>

You can also see examples of using links and buttons here for example

http://getbootstrap.com/components/#navbar

Another way is using javascript or jquery and onclicked.

    
06.08.2014 / 02:29
0

You can also create a function in jquery that calls your page and the button to call this function like this:

Jquery:

function chamaInicio(){
   $(window.document.location).attr('href','url_da_sua_pagina_completo_aqui');
}

And here's the call on your button

<input id="btnChamaInicio" type="button" class="btn btn-success col-md-1" value="Inicio" onclick=" return chamaInicio();" />

Test and post the result.

    
06.08.2014 / 12:27