All posts tagged ci trips

How do you get the current value from a select list

Today i am developing a client management system where i fall a problem, i am not able to get the current select list values. I search on google but visiting many site i am not get good solution. At last i got the solution in one blog . So that i think to share this problem solution with you. This problem is search by many people in google by “How do you get the current value from a select list?”

To get the current value is very simple using val().

$('#selectList').val();

View Demo:

$('#selectList :selected').text()

I will create the demo and code below. This would be how to set a select multiple to an array called, “foo”.

      var foo = [];

      $('#multiple :selected').each(function(i, selected){

          foo[i] = $(selected).text();

      });

Setting up multiple applications with CodeIgniter

How can we use codeigniter framework directory to create multiple applications? Many times we need to run multiple codeigniter application . For all project we need the codeigniter system folder. If we copy the whole folder then it makes us trouble to update the codeigniter core. So that we use a unique codeigniter system for our multiple application. Lets see how we can do that.
The codeigniter structure is like this.
codeigniter file structure
Continue reading →