Aliaksei Bulhak
Aliaksei Bulhak

Reputation: 6208

Checked radio button in jquery-ui dialog window

I created simple dialog window using jquery-ui. It's look like this:

<div id="dialog-form" title="Add Attribute Category">
    <input type="radio" id="priceable" name="price" value="true" checked="checked"/> Priceable
    <input type="radio" id="priceless" name="price" value="false"/> Priceless
</div>

This code works only in Firefox.

enter image description here

In other browsers like Chrome or IE all radio buttons not checked.

enter image description here

Maybe someone can help me and give advice?

Sorry for my bad English.

UPDATE add whole picture in chrome

enter image description here

the same dialog box in firefox

enter image description here

Upvotes: 1

Views: 1610

Answers (2)

Manish Jangir
Manish Jangir

Reputation: 5437

Try this one

<div id="dialog-form" title="Add Attribute Category">
<input type="radio" id="priceable" name="price" value="true" checked ="checked"> Priceable
<input type="radio" id="priceless" name="price" value="false"/> Priceless
</div>

Upvotes: 0

shruti
shruti

Reputation: 780

enter image description heretry:

<div id="dialog-form" title="Add Attribute Category">
<input type="radio" id="priceable" name="price" value="true" checked/> Priceable
<input type="radio" id="priceless" name="price" value="false"/> Priceless
</div>

but surprisingly your code works very fine on my system..

Upvotes: 2

Related Questions