0

I am using jquery plugin for flat radio button with three choices from the following link: http://jqueryui.com/button/#radio

and it is working if use directly with html code but it is not working if i use same code using

$("#id").append("html code for radio button").

when I inspecting on browser using inspect element then found that html code of radio button generated with jquery is different from other one. however I have written it same. After loading it changes. Dont why?

1 Answer 1

2

You need to call .buttonset() after append;

$("#id").append('<input type="radio" id="radio1" name="radio">').buttonset();

Here is working demo: jsfiddle

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.