Archive for the ‘HTML’ Category

h1

Set Document mode standard/Edge in IE

September 2, 2015

set Document mode standard/Edge in IE
Code :

Add meta tag in web page
<meta http-equiv=”X-UA-Compatible” content=”IE=edge” />

If you are using .net you can add this to the web.config

<system.webServer>
    <httpProtocol>
     <customHeaders>
        <add name="X-UA-Compatible" value="IE=edge" />
      </customHeaders>
    </httpProtocol>
</system.webServer>
Advertisements
h1

Making Non-selectable options and option groups in select

December 10, 2010

Making Non-selectable options and indented option groups are pretty easy in select control. disabled the options is not a correct way to do, use optgroup option.

Making Non-selectable options :

<select >
<option >groups</option>
<optgroup label=”group1″> </optgroup>
<option> group 1 item 1</option>
<option> group 1 item 2</option>
<optgroup label=”group2″> </optgroup>
<option> group 2 item 1</option>
<option> group 2 item 2</option>
</select>

Making indented option groups:

<select >
<option >groups</option>
<optgroup label=”group1″>
<option> group 1 item 1</option>
<option> group 1 item 2</option>
</optgroup>
<optgroup label=”group2″>
<option> group 2 item 1</option>
<option> group 2 item 2</option
>/optgroup>
</select>

 

h1

HTML Readonly checkbox

August 11, 2010

using javascript we can create readonly chechbox

 <input onclick=”return false;” checked=”checked” id=”chk1″ type=”checkbox”  />