bootstrap show/hide input depended on radio - html

I need to have two radio buttons.
The first is called "Use an existing" and the second is called "Create new scene".
There should be hidden input under radios and if I check the "Create new scene" radio, there should appear the input. If i check the first radio "Use an existing", the input should hide again.
My question is: Is there any way to achieve that by bootstrap or I have to use JQuery?

Yes, you would have to use JQuery, there is not a built in function of Bootstrap do that.
Bootstrap is built on JQuery, so you essentially are always using JQuery.

Related

How do I turn off check boxes?

I want to have a two check boxes behave as if they were radio buttons. When one is checked, I want the other to turn off. I am using ColdFusion <CFForm>. Another option would be to use a radio button tag but have them look like check boxes. Any suggestions?
Another option would be to use a radio button tag but have them look like check boxes. Any suggestions?
Don't. There's a reason checkboxes behave like checkboxes and radio buttons behave like radio buttons. If you introduce a deviation from this you'll just confuse your users who have been trained for years that this is the way these controls behave. If you want radio button functionality, use radio buttons.

Change form of input in Material css

I like Material css design but I have a problem with the input. The input form not so common for user who use it for first time. So how to change form of input into just like Bootstrap input (a box). Thanks
You can't just change it. But you may use textbox as type and class "browser-default" for select.

How to have radio button behaviour for divs while using angular?

So I'm starting with angular and I would like filter a list depending on which div is currently selected.
They are selected by being cliked. I suppose this is exactly how radio buttons behave but they are ugly and I would like to have a completely designed div (not just label) which is to be clicked.
I've read that you can add label with for attribute and hide the radio button to have something similar. I suppose what I would like is to be able to add for on a div to bind it.
What would be the best way to achieve this The Angular Way ?
You will find your solution at angular ui bootstrap goto buttons sections

Styling radio buttons that are not clicked

I am wondering if there is a CSS-only way to style those radio buttons of a radio button group that are not clicked after one of them was clicked.
Let's rephrase to clarify. I have a radio button group. Initially, all buttons are in the default state with no button selected. Now I click one radio button so that one now becomes selected. At this point, is there a way to give the other non-selected buttons a different style?
Please note that I don't need help with custom styling radio buttons. I know how to do that. This is specifically about the use case described above.
No, there is no attribute that the CSS can be linked to. There is only checked and "not checked". You'll have to do do some JavaScripting to get this done.

HTML5 Anyway to include a submit button directly into a input type="text"

HTML5 Anyway to include a submit button directly into a input type="text"?
For instance when the user types in something, a button "submit" appears inside the textarea?
Another way to look at it, can u define 2 types in one input?
No, you can't define two input types in the same input element.
To achieve what you want you'd need to define a separate input element for your button, and use CSS and JavaScript to position it and make it appear/disappear etc.
You could do something like this (using jQuery for convenience.) The code could be cleaned up, but that's the general idea.