Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to create table in database via wordpress plugin code?

 /* ++++++ Create a table +++++++*/ function create_admin_table(){global $wpdb; $create_cases_table_name = $wpdb->prefix . “jaspreetsingh”; $create_cases_table_query = “CREATE TABLE $create_cases_table_name (  ID mediumint(9) NOT NULL AUTO_INCREMENT,  name text NOT NULL,  phone

Read More »

How to get Selected Option Text of HTML SELECT using jQuery?

Get Selected Option Text of HTML SELECT using jQuery <select id=”mySelect”>     <option value=”1″>hello</option>     <option value=”2″>bro</option> </select> <input type=”button” id=”test“ value = “test“ /> <script type=”text/javascript”>     $(“#test”).live(“click”, function () {                  var selectedText = $(“#mySelect option:selected”).html();         alert(selectedText);     }); </script>

Read More »