Posts

how to select a pre-defined value in bootstrap 3 dropdown -

Image
I have the following fiddle, it all looks fine, but the point is that instead of initially selecting 'I' The first option was to put in the selected dropdown. How can I go about doing this? & lt; Div class = "input-group-btn" & gt; & Lt; Button type = "button" class = "BTN BTN-default dropdown-toggle" data-toggle = "dropdown" & gt; Yellow Janis Search & lt; Span class = "carat"> gt; & Lt; / Span & gt; & Lt; / Button & gt; & Lt; Ul class = "pull-down menu pull-right" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; By clicking & lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; Toko & lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; It looks like what happens when you select a value from the dropdown, it only goes to the link given...

html - Shrink navbar while scrolling down using Bootstrap 3 -

I am using Bootstrap 3 for the development of a website. I need to create a navbar which should be as small as the user's scroll down. Something like this - How can I make it? I'm using a fixed-top example of bootstrap as the starting point - I need to put a logo on the left instead of the text and reduce its size as the user scroll down. ! Thanks in advance. A good example of scrolling is here: $ (Window) .scroll (function () {if ($ (document) .scrollTop ()> 50) {$ ('nav') AddClass ('shrink');} else {$ ('NAV'). Class ('shrink');}});

java - How do I query an fts table in sqlite for one column matching and another NOT matching a particular query? -

I have a suggestion table (FTS4) that was used to provide suggestions for a query in the Android Action Bar Search. goes. I need to query the table for suggestions where a column ( suggest_text_1 ) matches the query text, and the second column ( data_type ) does not match any particular query , Then say 2 . My current selection is text table_suggestions MATCH and I '?' Trying the following logic text to replace for / code> - suggest_text_1: * S1 * and data_type: not 2 . The problem is that, the table is giving me some suggestions, even if the data is there, can I be told to do this query correctly? The SQLite library is not usually compiled in Android, with enhanced query syntax, so that you can see the Something like using suggest_text_1: S1 * data_type: -2 would be in SQL: select from dokid, suggest_text_1 to MyTable WHERE MyTable MATCH 'suggest_text_1:' || ? || '* Data_type: -' || ? FTS only supports prefix queries; You can not...

C: return matrix from a function -

I am trying to run the following code in DEVC ++ v5.5.2 The following error is "Return from Incompatible Notification Type" Another error related to the heading "Return Arrival" title file shows the "Incompatible Type" double complex "when specifying to type" double complex "result in line [0] [J] = circularsoft (AR) ; " Please thank in advance main.c c enter code here # include & lt; stdio.h & gt; #s & Lt include; from conio.h & gt; #to & lt; stdlib.h & gt; #include "complex.h" #include "shiftcheck.h" #define size 6 double complex * circular shaft (double Complex ARE [1] [size]); zero performance (double complex ARR [1] [size]); int main () {int no, i, j; dual complex (* result) [839], * result 1; Double Complex ARR [1] [SIZE] = {2,3,4,1,8,9); Printf ("\ n" How often do you want to make the circular transfer to the array Do not want? \ N); scanf ("% d", & am...

how to sum time in sql server 2008? -

How to sum the time column in SQL Server I want good luck on Monday, Tuesday, Wednesday, On Thursday, Friday and Saturday and updated I Tot_hrs I have the update logic I am unable to sum from Monday to Saturday Create table WEEKLY_ATTN ([SYSID] [int] identification (1, 1) Not empty, [EMPLOYEE_SYSID] [int] tap, [mon_de] [varchar] (10) tap, [tue_day] [varchar] (10) tap, [Wednesday] [varchar] (10) tap, [gurud day] [Varchar] (10) NULL, [Friday] [va Rchar] (10) NULL, [Saturday] [varchar] (10) NULL, [Tot_Hrs] [varchar] (20) NULL); INSERT WEEKLY_ATTN (employee_sysid, mon_day, tue_day, wed_day, thu_day, fri_day, sat_day) Price (41, '11: 01 ',' 11:57 ',' 11:02 ',' 10:19 ',' 09:26 ' ,Zero); Below is the query that I've used select mon_day, tue_day, wed_day, thu_day, fri_Day, sat_day, cast (dateadd (s, isnull) Dated (S, 0, Mon_de), 0) + unknown (dated (0, Tue_day), 0) + isnull (dated (s, 0, wed_day), 0) + isnull (dated, 0, master-day), 0 ...

inheritance - Get enum size from parent interface in java -

I have an interface ParentInterface and there are several enforcers to implement it: ChildEnum1 and ChildEnum2 . I have a method that I pass as the ParentInterface parameter. By which method is passed the ChildEnum , I want to get this size of anonymity How can I do this? The values.length () method works only on enums , but we are going through the caller only in ParentInterface . How can we achieve it? with reflection, Dirty demo): package com.stackoverflow.so21821751; Public Class Test {Interface ParentInterface {void someMethod (); } Stable enum implements ChildEnum1 ParentInterface {FOO, BAR, LOL; @ Override public zero; some method () {// some}} static enum ChildEnum2 ParentInterface {FOO, BAR; @ Override Public Zero Some Method () {// Some}} Public Fixed Zero Main (Last String [] args) {foo (ChildEnum1.BAR); // 3 fu (hair annam 2.fu); // 2} Private Static Zero Foo (Last ParentInterface i) {System.out.println (i.getClass (). GetEnumConstants (). Length...

jquery - JavaScript runtime error: 'console' is undefined in internet explorer 8? -

जावास्क्रिप्ट रनटाइम त्रुटि: 'कंसोल' इंटरनेट एक्सप्लोरर 8 में अनिर्धारित है? लॉगिन फॉर्म Window.onload = function () { // संपादित आगंतुकों टैब var भाई बहन = ($ ("li.pull-right") चुनें। भाई बहन ()); के लिए (var i = 0; i & lt; = siblings.length - 1; i ++) {console.log (भाई बहन [i] .innerText.trim ()। ToLowerCase ()); अगर (भाई बहन [आई] .innerText.trim ()। ToLowerCase () == "आगंतुकों को संपादित करें") {भाई बहन [i] .setAttribute ("वर्ग", "सक्रिय पुल-दायें"); } अन्य {भाई बहन [i] .setAttribute ("वर्ग", "पुल-दायें"); }} & Lt; / script & gt; & Lt; / head & gt; & LT; बॉडी & gt; & Lt; div & gt; & Lt; ul class = "nav nav-tab nav-core nav-heros" & gt; & Lt; li वर्ग = "पुल-दायें" & gt; & lt; a href = "EditVisitor.aspx" & gt; विज़िटर को संपादित करें & lt; / a & gt; & lt; / li & gt; & Lt; li वर्ग = "पुल-दायें...