Sorting table data in Angular js

Sorting table data in Angular js

To sorting table data in Angular js, first call a function on table column click, you may name it as you wish. Here i am naming it “changeOrder”. Use “| orderBy:!changeOrder?’-name’:’country'” in ng-repeat. “-” denote desc order. Here we define default order by name desc. In above example, we are taking static data, we can use web service for dynamic ... Read More »

How to get value of selected radio button in Javascript?


Today i am going to talk about, How to get value of selected radio button in Javascript? To get value of selected radio button, first define different IDs for options in HTML section. On submit button call a function, here i am calling a function validate();. You will get selected radio value in variable gen_type. HTML Part Javascript Part You ... Read More »

Redirect to referrer page after login in wordpress


To redirect on referrer page after login in wordpress, use below code, paste this code in function.php. There are many pluging to use a validation for a PAGE or POST. Only registered user can view such kind of POST and PAGE. You may use simple access control plugin for it. After login user can visit that POST or PAGE, which ... Read More »

Create your own pop-up


To create own pop-up, fir i an creating a button and call two function, showlight() on onMouseOver and hidelight() on onMouseOut. When mouseover on button function showlight() call and display div of image, and when mouse out hidelight() call and hide the div in which image present. set style of div. Read More »

Select all from list box


To select all value for list box, here, i am creating a function listbox_selectall(); and passing two parameter in this function. Passing id of list box and true or false, true is using for select all and false for select none. Always use javascript:void(0), in place of # for link, when we use #, page will toggle, to avoid page ... Read More »

expand table rows with jquery


We can expand table rows with help of jquery. Here i am define table id mydata.As you run this code, you will see state list, as you click on expend button, you can see city list of that state, again you click on expend button, city list will hide. You can get expend button image click on download. Just copy ... Read More »

Javascript date with clock


We can display a clock which will be showing the local time of the client computer by using JavaScript. Note that this time displayed is taken from user computer and not from the server. Use below code for it. Read More »

Scroll To Top