Welcome Guest, Not a member yet? Register   Sign In
dependable dropdown in codeigniter
#1

how to build dependable dropdown using codigniter.
can we us ajax for this .
any one please help me
Practice | Practice | Practice
Reply
#2

CI doesn't have functions for hiding or displaying elements dynamically after the page is loaded. That's something you need Javascript for.
If you want the selected value to make CI do something (server sided), then you need AJAX.

Jquery is a very easy and efficient way for basic Javascript functions as well as advanced AJAX requests.
Include a link to the Jquery framework in the head section of your page (or template).

In your view file, after the closing php tag, you put the jquery script, like this:

PHP Code:
<?php
  
// php code in view
?>

<script>
$(document).ready(function(){
  //put your jquery functions here
});
</script> 
Reply
#3

(08-07-2015, 10:58 PM)Midhun Mohanan P Wrote: how to build dependable dropdown using codigniter.
can we us ajax for this .
any one please help me

Using the form helper has a built in function


http://www.codeigniter.com/user_guide/he...m_dropdown
Reply




Theme © iAndrew 2016 - Forum software by © MyBB