Style input type file? [duplicate]

Follow these steps then you can create custom styles for your file upload form: 1.) This is the simple HTML form(please read the HTML comments I have written here bellow) <form action=”#type your action here” method=”POST” enctype=”multipart/form-data”> <div id=”yourBtn” style=”height: 50px; width: 100px;border: 1px dashed #BBB; cursor:pointer;” onclick=”getFile()”>Click to upload!</div> <!– this is your file … Read more

How can I disable the new Chrome HTML5 date input?

You have a couple of different options. You could detect that the user is using Chrome by sniffing the user agent string and preventing click events. if (navigator.userAgent.indexOf(‘Chrome’) != -1) { $(‘input[type=date]’).on(‘click’, function(event) { event.preventDefault(); }); } User agent sniffing is a bad idea, but this will work. The ideal approach in my mind is … Read more

Automatically capitalize all input in WPF

You can case all input into TextBox controls with the following property: CharacterCasing=”Upper” To apply to all TextBox controls in the entire application create a style for all TextBox controls: <Style TargetType=”{x:Type TextBox}”> <Setter Property=”CharacterCasing” Value=”Upper”/> </Style>

iOS5 show numeric keypad by default without using type=”number” or type=”tel”

Styling the field to contain symbols When it comes to including the symbols within this number field, you can use some walkaround like that: HTML: <span id=”number-container”> <input type=”number” name=”number” id=”number-field” value=”500″ /> <span id=”number-container-symbol”>$</span> </span> CSS: #number-container { position: relative; } #number-container-symbol { left: 5pt; position: absolute; top: 0px; } #number-field { background-color: transparent; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)