
Search In
If you want to add some css or change css on a button click in angularjs,you need to use angular directive mg-class for this.
It is very simple you just need to bind a variable into the directive “mg-class” and change it from the controller.
Here i
Hello readers if you want to show a live clock on your web page then you can use the javascript to make it.
So lets start with html page. Create blank HTML page name is clock.html, And it's code will go like this:-
<html>
<head>
<tit
I am looking for a way in rails using which I can change the timezone i.e UTC or GMT of date time string without actually making any changes to the original string (just want to change the timezone) .
Is there any inbuilt time method in Rails which
Hi If you are using the DataTable then by default it will show the records for 10,25,50 and 100. And if you want to change this number according to your needs.
You just need to make changes inside the script by adding the aLengthMenu and iDisplayLeng
Sometimes we need to change default Character set of Schema. We can do this easily by using ALTER command.
Command:
ALTER SCHEMA database-name DEFAULT CHARACTER SET utf8 ;
Example:
ALTER SCHEMA `jeeyoh` DEFAULT CHARACTER SET utf8 ;
by running
Now its possible to change the application specific language programatically It is working by setting locale. But you have to set it in all activities. Here is a code you can try these code.
you can get the local language using locale and can then s
To change placeholder font add the following code:
[[UILabel appearanceWhenContainedIn:[UISearchBar class], nil] setFont:[UIFont fontWithName:@"Helvetica" size:12.0]];
and,to change the font for the SearchBar textField add the following lines:
[[U
It is very common that the Android's Edit text needs to clear all filled data in one hit, rather than clearing every single text using keyboard's 'X' button.
It is a good practice that enable user to clear all the text using Edit Text drawable.
pu
Events are the strength of jquery. There are different types of events for different purposes in jquery such as click,change etc. We are going to discuss one of the events named resize. It will be applied on the window size change. It will call a fun
You need to give class to the button and attach the .on() method with it.
If you have multiple buttons that when you click one, it changes classes & the text inside.
Here is the simple code to do this:
$('.EgClassName').on('click', function(e){
